This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients andresriancho, brett.cannon
Date 2007-09-27.21:04:08
SpamBayes Score 0.018128997
Marked as misclassified No
Message-id <1190927048.98.0.715191122363.issue1217@psf.upfronthosting.co.za>
In-reply-to
Content
I am not convinced this an infinite loop but more of a poor-performing
regex over a large string.

You have three greedy quantifiers in that regex.  That means the first
one is going to consume the entire file, and then you begin back-off
looking for '://'.  Once that is found you consume the rest of the
string again and then back off looking for ':'.  Then the rest of the
string is consumed and then back-off begins for '@' which should fail
since I can't find a single instance of '@'.

But that is a lot of backing off over a large string which has a ton of
partial matches before failure occurs when looking for the '@'.  It
looks like you are trying to match a URL, which means you probably want
something more specific than '.' for those greedy quantifiers.

Closing as invalid.
History
Date User Action Args
2007-09-27 21:04:09brett.cannonsetspambayes_score: 0.018129 -> 0.018128997
recipients: + brett.cannon, andresriancho
2007-09-27 21:04:09brett.cannonsetspambayes_score: 0.018129 -> 0.018129
messageid: <1190927048.98.0.715191122363.issue1217@psf.upfronthosting.co.za>
2007-09-27 21:04:08brett.cannonlinkissue1217 messages
2007-09-27 21:04:08brett.cannoncreate