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

Chris Angelico rosuav at gmail.com
Thu Oct 22 06:52:52 EDT 2015


On Thu, Oct 22, 2015 at 9:00 PM, Andrew Barnert via Python-ideas
<python-ideas at python.org> wrote:
> But I still don't like it. Where else does Python provide two equivalent ways to do something, specifically to support external semantic connotations? It's like having <> and != both mean the same thing to support people coming up with some language-external difference between the spellings.
>

I don't know, but since PEP 8 recommends using """ for docstrings and
not ''', it would be entirely possible for someone to assign special
meaning to the use of ''' for a docstring.

ChrisA


More information about the Python-ideas mailing list