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 abarry
Recipients abarry, ezio.melotti, r.david.murray, vstinner, ztane
Date 2016-06-24.02:59:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466737185.04.0.749877082683.issue27364@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it's in use in an awful lot of places (see my patch). The proper fix is to use raw strings, or, if you need actual escapes in the same string, manually escape them. However, as you'll see by looking at the patch, the vast majority of cases are fixed by prepending a single 'r' to the front of the string. In fact, only csv.py and html/parser.py needed more finer-grained escaping.

I think that the argument "It works in non-raw strings" is weak. I've always used raw strings for regular expressions, and this patch would simply move this from being a style issue to being a syntax one (and I think it's fine :).
History
Date User Action Args
2016-06-24 02:59:45abarrysetrecipients: + abarry, vstinner, ezio.melotti, r.david.murray, ztane
2016-06-24 02:59:45abarrysetmessageid: <1466737185.04.0.749877082683.issue27364@psf.upfronthosting.co.za>
2016-06-24 02:59:45abarrylinkissue27364 messages
2016-06-24 02:59:44abarrycreate