Author mortenlj
Recipients akuchling, amaury.forgeotdarc, belopolsky, benjamin.peterson, donlorenzo, mortenlj, pitrou, rsc, zanella
Date 2008-06-28.20:51:58
SpamBayes Score 0.00376862
Marked as misclassified No
Message-id <1214686319.93.0.360117004902.issue2650@psf.upfronthosting.co.za>
In-reply-to
Content
In my particular case, we were passing the regex on to a database which 
has regex support syntactically equal to Python, so it seemed natural 
to use re.escape to make sure we weren't matching against the pattern 
we really wanted.

The documentation of re.escape also states that it will only escape non-
alphanumeric characters, which is apparently only true if you are using 
a single byte encoding (ie. not utf-8, or any other encoding using more 
than a single byte per character). At the very least, that's probably 
worth mentioning in the docs.
History
Date User Action Args
2008-06-28 20:52:00mortenljsetspambayes_score: 0.00376862 -> 0.00376862
recipients: + mortenlj, akuchling, amaury.forgeotdarc, belopolsky, pitrou, rsc, benjamin.peterson, zanella, donlorenzo
2008-06-28 20:51:59mortenljsetspambayes_score: 0.00376862 -> 0.00376862
messageid: <1214686319.93.0.360117004902.issue2650@psf.upfronthosting.co.za>
2008-06-28 20:51:59mortenljlinkissue2650 messages
2008-06-28 20:51:58mortenljcreate