[issue846388] Check for signals during regular expression matches
Ralf Schmitt
report at bugs.python.org
Fri Nov 2 17:51:27 CET 2007
Ralf Schmitt added the comment:
here is an example (from http://swtch.com/~rsc/regexp/regexp1.html)
python -c 'import re; num=25; r=re.compile("a?"*num+"a"*num);
r.match("a"*num)'
At work I have seen a real world case of a regular expression which ran
for minutes rendering the application unresponsive. We would have been
glad to be able to interrupt the regular expression engine and getting a
traceback.
----------
nosy: +schmir
____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue846388>
____________________________________
More information about the Python-bugs-list
mailing list