[Python-Dev] Re: string.find() again (was Re: timsort for jython)

Ka-Ping Yee python-dev@zesty.ca
Thu, 8 Aug 2002 13:24:56 -0700 (PDT)


On Mon, 5 Aug 2002, Guido van Rossum wrote:
> At least this still holds (unless x is an iterator or otherwise
> mutated by access :-):
>
>   for v in x:
>      assert v in x

And -- wham! -- the dangers of an invisibly destructive "in" operator
land in front of us once again like an enormous stomping foot falling
out of the sky.

Still not convinced?

Oh, well.  There exists a solution, in case you're curious:
http://mail.python.org/pipermail/python-dev/2002-July/026899.html


-- ?!ng