sre.finditer break down: is this a bug?
Fredrik Lundh
fredrik at pythonware.com
Sat Jul 13 13:10:29 EDT 2002
Jane Austine wrote:
> Newly added function sre.finditer and (matchedObject.)finditer
> break down and the system crushes on win32 when requested for
> next() after StopIteration.
>
> see:
> >> import sre
> >> fi=sre.finditer(r'\s','a b')
> >> fi.next()
> >> fi.next()
> >> fi.next() #system halts for ever.
well, I'm tempted to just say "don't do that" (if python tells
you to stop iterating, stop iterating ;-), but it sure looks like
a bug.
bugs are best reported on sourceforge; see
http://www.python.org/dev/
for details and links.
</F>
More information about the Python-list
mailing list