Gareth Rees added the comment:
This is the usual exponential backtracking behaviour of Python's regex engine.
The problem is that the regex
(?:[^*]+|\*[^/])*
can match against a string in exponentially many ways, and Python's regex
engine tries all of them before giving up.
----------
nosy: [email protected]
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30973>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com