[issue24379] slice.literal notation
Steven D'Aprano
report at bugs.python.org
Thu Jun 4 13:14:19 CEST 2015
Steven D'Aprano added the comment:
I'm with Serhiy, I don't think we need a "literal", just make slice itself indexable:
reverse = slice(None, None, -1)
reverse = slice[::-1]
The only question in my mind is what slice should do when given just a single index:
slice[0]
I suppose that should be a ValueError?
----------
nosy: +steven.daprano
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24379>
_______________________________________
More information about the Python-bugs-list
mailing list