A
Alan G Isaac
Is the behavior below expected? Documented?
(The error msg is misleading.)
Thanks,
Alan Isaac
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: sequence index must be integer, not 'slice'
(The error msg is misleading.)
Thanks,
Alan Isaac
>>> x = range(20)
>>> s = slice(None,None,2)
>>> x
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: sequence index must be integer, not 'slice'