Issue 5029: Odd slicing behaviour (original) (raw)
Issue5029
Created on 2009-01-22 02:01 by dgaletic, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg80354 - (view) | Author: Dinko Galetić (dgaletic) | Date: 2009-01-22 02:01 |
#the following code should return an empty list, but returns the 0th member of the list >>> foo = [1, 2, 3] >>> foo[0::-1] [1] | ||
msg80360 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2009-01-22 08:27 |
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. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:44 | admin | set | github: 49279 |
2009-01-22 08:45:17 | georg.brandl | set | status: open -> closedresolution: works for me |
2009-01-22 08:27:53 | pitrou | set | nosy: + pitroumessages: + |
2009-01-22 02:48:24 | LambertDW | set | nosy: + LambertDW |
2009-01-22 02:01:13 | dgaletic | create |