[Python-Dev] Re: Attribute Strings

Guido van Rossum guido at python.org
Sun Aug 8 23:59:54 CEST 2004


> > The second is not a valid string literal now -- 
> 
> That's why I suggested it.  ""@" would be a new token, so the statement
> about '@' in the delims section would remain essentially unchanged.

Hm.  You might as well propose @#$% then. :-)

Anyway, the problem with anything inside "string literals" (real or
perceived) is that then the parser has to recursively parse the
expression in the string literal, because it has to generate code for
it.  I consider this too perverse to bother.

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list