[Python-ideas] Python reviewed
Simon Lovell
simon58500 at bigpond.com
Tue Jan 10 00:29:06 EST 2017
More information about the Python-ideas mailing list
Tue Jan 10 00:29:06 EST 2017
- Previous message (by thread): [Python-ideas] Python Reviewed
- Next message (by thread): [Python-ideas] Python reviewed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oh one last thing (I hope), the argument for having the current slice notation by Dijkstra, that it looks messy to have a loop where the contents are never executed or can no longer be executed is ridiculous! That *should* look messy. for range(1,1): means executing once to me. If you had 1 based, two of four of the other idioms would work the same: s[:n] + s[n:] == s // doesn't work. I don't think it should work though len(s[:n]) == n // works len(s[:-n]) == n // rather independent but would still work if language is otherwise unchanged. len(s[n:i]) == i - n // doesn't work. Does it need to? Rgds -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170110/c0c67314/attachment.html>
- Previous message (by thread): [Python-ideas] Python Reviewed
- Next message (by thread): [Python-ideas] Python reviewed
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list