re bug
Michael Hoffman
m.h.3.9.1.without.dots.at.cam.ac.uk at example.com
Tue Oct 5 06:16:30 EDT 2004
Klaus Neuner wrote:
> it seems that there is a bug in the re module. Below there is a sample
> program that illustrates it.(Sorry for its length. I was not able to
> write a simpler regex that produced the same effect.)
It might help if you told us what this is supposed to do in real terms...
> Is there perhaps a way to tell Python something like
>
> "Try the search for 5 minutes. If you don't find anything, continue."
Yes. Use signal.alarm(). See:
http://www.python.org/doc/current/lib/node304.html
--
Michael Hoffman
More information about the Python-list
mailing list