[Python-Dev] String literal concatenation & docstrings

Guido van Rossum gvanrossum at gmail.com
Sat Nov 27 22:05:42 CET 2004


> So how is this for new wording?
> 
> "Multiple adjacent string literals (delimited by whitespace), possibly using
> different quoting conventions, are allowed, and their meaning is the same as 
> their concatenation as long as the newline separating them is not signifcant to
> the parser."

I'm not sure it needs clarifying; it's the reference manual after all,
not a tutorial.

I'd rather let the grammar speak for itself; there's no ambiguity in
that, and the words are just there to clarify the *semantics*.

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


More information about the Python-Dev mailing list