Message281408
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 |
|
Date |
User |
Action |
Args |
2016-11-21 23:41:24 | martin.panter | set | recipients:
+ martin.panter, akuchling, rhettinger, docs@python, python-dev, Mariatta, ChrisRands |
2016-11-21 23:41:24 | martin.panter | set | messageid: <1479771684.45.0.378504123862.issue28587@psf.upfronthosting.co.za> |
2016-11-21 23:41:24 | martin.panter | link | issue28587 messages |
2016-11-21 23:41:24 | martin.panter | create | |
|