[New-bugs-announce] [issue5029] Odd slicing behaviour

Dinko Galetić report at bugs.python.org
Thu Jan 22 03:01:14 CET 2009

New submission from Dinko Galetić <dinko.galetic at gmail.com>:

#the following code should return an empty list, but returns the 0th
member of the list

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

components: Regular Expressions
messages: 80354
nosy: dgaletic
severity: normal
status: open
title: Odd slicing behaviour
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list