[Python-Dev] sequence slice that wraps, bug or intention?

2009-04-03 Thread Ulrich Eckhardt
Hi! I just stumbled across something in Python 2.6 where I'm not sure if it is by design or a fault: x = 'abdc' x[-3:-3] - '' x[-3:-2] - 'b' x[-3:-1] - 'bc' x[-3: 0] - '' The one that actually bothers me here is the last one, I would have expected it to yield 'bcd' instead, because otherwise

Re: [Python-Dev] sequence slice that wraps, bug or intention?

2009-04-03 Thread Paul Moore
2009/4/3 Ulrich Eckhardt eckha...@satorlaser.com: Hi! I just stumbled across something in Python 2.6 where I'm not sure if it is by design or a fault: x = 'abdc' x[-3:-3] - '' x[-3:-2] - 'b' x[-3:-1] - 'bc' x[-3: 0] - '' The one that actually bothers me here is the last one, I would