[issue24379] slice.literal notation
Joe Jevnik
report at bugs.python.org
Wed Jun 10 17:24:22 CEST 2015
Joe Jevnik added the comment:
>>> slice.literal[0]
0
>>> y = slice.literal[1:2]
slice(1, 2, None)
>>> slice.literal[0:1, ..., 3]
(slice(0, 1, None), Ellipsis, 3)
The way this object works right now does not create instances of some inner class of slice, instead, indexing it returns the key without modification.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24379>
_______________________________________
More information about the Python-bugs-list
mailing list