[issue24379] Add operator.subscript as a convenience for creating slices

Ivan Levkivskyi report at bugs.python.org
Sat Nov 12 04:46:43 EST 2016


Ivan Levkivskyi added the comment:

I think it would be more useful for multidimensional slicing:
>>> subscript[::-1, ..., ::-1]
(slice(None, None, -1), Ellipsis, slice(None, None, -1))

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24379>
_______________________________________


More information about the Python-bugs-list mailing list