[Python-ideas] An iterable version of find/index for strings?

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Fri Apr 5 11:11:18 CEST 2013


Tom Schumm <phong at ...> writes:

> 
> Should Python strings (and byte arrays, and other iterables for that
> matter) have an iterator form of find/rfind (or index/rindex)?

+1 as well.
As you say, it's a logical thing to have, and there don't seem to be any
disadvantages to it.

Wolfgang






More information about the Python-ideas mailing list