[issue16430] re.match blocking and taking 100% CPU
Serhiy Storchaka
report at bugs.python.org
Wed Nov 7 18:34:32 CET 2012
Serhiy Storchaka added the comment:
There is no a Python bug.
You have wrong regexp. Remove "$" at the end or add ".*" before "$".
And it would be better if instead of '(?P<date>.*?)\s' and '"(?P<method_uri>.*?)"' you use '(?P<date>\S+)\s' and '"(?P<method_uri>[^"]*)"'.
----------
nosy: +serhiy.storchaka
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16430>
_______________________________________
More information about the Python-bugs-list
mailing list