Matthew Barnett added the comment:

The problem is with the "(\w+\s*)+". \s* can match an empty string, so when 
matching a word it's like "(\w+)+".

If you have n letters, there are 2**n ways it could match, and if what follows 
never matches, it'll try all of them.

It _will_ finish, eventually...

----------

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

Reply via email to