[Python-ideas] PEP 8: raw strings & regular expressions

Serhiy Storchaka storchaka at gmail.com
Thu Oct 22 12:03:05 EDT 2015


On 22.10.15 17:04, Yury Selivanov wrote:
> On 2015-10-22 6:14 AM, Serhiy Storchaka wrote:
>> Do highlighters highlight formatting strings ("%*.2f" or
>> "{0.addr:0{}x}") specially?
>
> Many highlight old-style formatting.  Less highlight the new-style.
>
> Github, for example, highlights both.

If the fact that not all strings are formatting strings is ignored, you 
are free to ignore the fact that not all raw strings are regular 
expression patterns.




More information about the Python-ideas mailing list