Matthew Barnett added the comment:

Your regex is a pathological case: it suffers from catastrophic backtracking 
and can take a long time to finish.

The other problem is that the re module never releases the GIL, so while it's 
performing the search in the low-level C code, other Python threads don't get a 
chance to run.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24555>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to