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 martin.panter
Recipients ChrisRands, Mariatta, akuchling, docs@python, martin.panter, python-dev, rhettinger
Date 2016-11-21.23:41:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479771684.45.0.378504123862.issue28587@psf.upfronthosting.co.za>
In-reply-to
Content
The committed change looks wrong in the new example. I think Mariatta’s patch was right; it the index found is 3, not 2:

>>> a
[66.25, 333, -1, 333, 1, 1234.5, 333]
>>> a.index(333)
1
>>> a.index(333, 2)  # search for 333 starting at index 2
3
History
Date User Action Args
2016-11-21 23:41:24martin.pantersetrecipients: + martin.panter, akuchling, rhettinger, docs@python, python-dev, Mariatta, ChrisRands
2016-11-21 23:41:24martin.pantersetmessageid: <1479771684.45.0.378504123862.issue28587@psf.upfronthosting.co.za>
2016-11-21 23:41:24martin.panterlinkissue28587 messages
2016-11-21 23:41:24martin.pantercreate