Author rsc
Recipients benjamin.peterson, rsc
Date 2008-04-18.01:08:15
SpamBayes Score 0.0213351
Marked as misclassified No
Message-id <20080418011003.84E1C1E8C58@holo.morphisms.net>
In-reply-to <1208465056.16.0.871421155437.issue2650@psf.upfronthosting.co.za>
Content
> It seems that escape is pretty dumb. The documentations says that
> re.escape escapes all non-alphanumeric characters, and it does that
> faithfully. It would seem more useful to have a list of meta-characters
> and just escape those. This is more true in Py3k when str can have
> thousands of possible characters that could be considered alphanumeric.

The usual convention is to escape everything that is
ASCII and not A-Za-z0-9_, in case other punctuation
becomes special in the future.  But I agree -- escaping
just the actual special characters makes the most sense.

Russ
History
Date User Action Args
2008-04-18 01:08:17rscsetspambayes_score: 0.0213351 -> 0.0213351
recipients: + rsc, benjamin.peterson
2008-04-18 01:08:16rsclinkissue2650 messages
2008-04-18 01:08:15rsccreate