[issue5029] Odd slicing behaviour

Antoine Pitrou report at bugs.python.org
Thu Jan 22 09:27:53 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Why should it return an empty list?

>>> foo = [1,2,3]
>>> foo[1::-1]
[2, 1]
>>> foo[0::-1]
[1]

looks quite consistent to me.

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list