Extended slice notation doesn't recognise integer
Joe Francia
usenet at -OBFUSCATED-joefrancia.com
Sun Feb 8 15:56:54 EST 2004
More information about the Python-list mailing list
Sun Feb 8 15:56:54 EST 2004
- Previous message (by thread): Clearing IDLE's screen?
- Next message (by thread): Extended slice notation doesn't recognise integer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Covello wrote: > Why does the following code give this error: > >>>>[0, 1, 2, 3, 4][::2] > > TypeError: sequence index must be integer This is what I get: >>> [0, 1, 2, 3, 4][::2] [0, 2, 4] Are you using 2.3.x? I believe extended slices didn't show up until 2.3.
- Previous message (by thread): Clearing IDLE's screen?
- Next message (by thread): Extended slice notation doesn't recognise integer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list