[Python-3000] Escaping in raw strings (was Re: [Python-Dev] PEP 30XZ: Simplified Parsing)
g.brandl at gmx.net
Thu May 3 20:40:18 CEST 2007
Guido van Rossum schrieb:
> On 5/3/07, Fred L. Drake, Jr. <fdrake at acm.org> wrote:
>> On Thursday 03 May 2007, Georg Brandl wrote:
>> > Is that something that can be agreed upon without a PEP?
>> I expect this to be at least somewhat controversial, so a PEP is warranted.
>> I'd like to see it fixed, though.
> It's too late for a new PEP.
It wouldn't be too late for a 2.6 PEP, would it? However, I'm not going to
> It certainly is controversial; how would you write a regexp that
> matches a single or double quote using r"..." or r'...'?
You'd have to concatenate two string literals...
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-3000