[issue28197] range.index mismatch with documentation
Vedran Čačić
report at bugs.python.org
Sun Sep 18 21:13:10 EDT 2016
Vedran Čačić added the comment:
Yes, that's the precise reason I caught this. I was implementing some tools to do with Sequences (seqtools, like itertools but having non-ephemeral output given non-ephemeral input), and the Sequence that was easiest to test quickly was range. In `positions` (like .index but gives all the places a value appears), it raised TypeError.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28197>
_______________________________________
More information about the Python-bugs-list
mailing list