Extended slice notation doesn't recognise integer

Thomas Covello pmjcovello at shaw.ca
Sun Feb 8 15:16:50 EST 2004


Why does the following code give this error:
>>> [0, 1, 2, 3, 4][::2]
TypeError: sequence index must be integer



More information about the Python-list mailing list