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 mrabarnett
Recipients MartinAltmayer, ezio.melotti, mrabarnett
Date 2020-12-17.12:55:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608209757.79.0.655058138665.issue42668@roundup.psfhosted.org>
In-reply-to
Content
In a regex, putting a backslash before any character that's not an ASCII-range letter or digit makes it a literal. re.escape doesn't special-case control characters. Its purpose is to make a string that might contain metacharacters into one that's a literal, and it already does that, although it sometimes escapes more than necessary.
History
Date User Action Args
2020-12-17 12:55:57mrabarnettsetrecipients: + mrabarnett, ezio.melotti, MartinAltmayer
2020-12-17 12:55:57mrabarnettsetmessageid: <1608209757.79.0.655058138665.issue42668@roundup.psfhosted.org>
2020-12-17 12:55:57mrabarnettlinkissue42668 messages
2020-12-17 12:55:57mrabarnettcreate