This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz
Date 2011-11-04.09:23:02
SpamBayes Score 3.3964093e-07
Marked as misclassified No
Message-id <1320398584.03.0.145013152611.issue13340@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-11-04 09:23:04Carl.Friedrich.Bolzsetrecipients: + Carl.Friedrich.Bolz
2011-11-04 09:23:04Carl.Friedrich.Bolzsetmessageid: <1320398584.03.0.145013152611.issue13340@psf.upfronthosting.co.za>
2011-11-04 09:23:03Carl.Friedrich.Bolzlinkissue13340 messages
2011-11-04 09:23:02Carl.Friedrich.Bolzcreate