Message269152
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 :). |
|
Date |
User |
Action |
Args |
2016-06-24 02:59:45 | abarry | set | recipients:
+ abarry, vstinner, ezio.melotti, r.david.murray, ztane |
2016-06-24 02:59:45 | abarry | set | messageid: <1466737185.04.0.749877082683.issue27364@psf.upfronthosting.co.za> |
2016-06-24 02:59:45 | abarry | link | issue27364 messages |
2016-06-24 02:59:44 | abarry | create | |
|