[issue24379] slice.literal notation

Mark Dickinson report at bugs.python.org
Thu Jun 4 15:23:04 CEST 2015


Mark Dickinson added the comment:

For prior art, it's worth taking a look at NumPy, and in particular its `s_` and `index_exp` functions:

>>> import numpy as np
>>> np.s_[1:2]
slice(1, 2, None)
>>> np.s_[0]
0
>>> np.s_[1:2, 3]
(slice(1, 2, None), 3)

----------
nosy: +mark.dickinson

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


More information about the Python-bugs-list mailing list