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 <rep...@bugs.python.org>
Python-bugs-list mailing list