Message147000
The list.index method does not accept None as start and stop, which makes the error message quite confusing:
>>> [1, 2, 3].index(2, None, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: slice indices must be integers or None or have an __index__ method
I checked this in 3.2.2 and 2.7.2. Seems similar to #12163. |
|
Date |
User |
Action |
Args |
2011-11-04 09:23:04 | Carl.Friedrich.Bolz | set | recipients:
+ Carl.Friedrich.Bolz |
2011-11-04 09:23:04 | Carl.Friedrich.Bolz | set | messageid: <1320398584.03.0.145013152611.issue13340@psf.upfronthosting.co.za> |
2011-11-04 09:23:03 | Carl.Friedrich.Bolz | link | issue13340 messages |
2011-11-04 09:23:02 | Carl.Friedrich.Bolz | create | |
|