Pathological regular expression

Dotan Cohen dotancohen at gmail.com
Sat Apr 11 11:48:50 EDT 2009


> IMHO it's not a bug -- s/hang/takes a long time to compute/
>

‎That is quite what a hang is, and why the timeout was invented. The
real bug is that there is no timeout mechanism.

> Just look at it: 2 + operators and 3 * operators ... It's one of those
> "come back after lunch" REs.
>

Some users would not be able to tell that from the beginning. While a
timeout override would be necessary in these cases, a timeout should
be set.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il



More information about the Python-list mailing list