Simple formatting string question

Robert Kern kern at caltech.edu
Thu Apr 13 16:57:33 EDT 2000


In article <%7qJ4.929$rc9.193537024 at newsb.telia.net>,
	"Fredrik Lundh" <effbot at telia.com> writes:
> Robert Kern <kern at caltech.edu> wrote:
>> GuruQuestion:
>> Should implicit string concatenation have a different precedence than
>> explicit string concatenation?  Perhaps only a mention in
>> http://www.python.org/doc/current/ref/string-catenation.html ?
> 
> what do you mean?
> 
> that page describes "string literal concatenation", and clearly
> says that multiple adjacent string literals are concatenated at
> *compile* time.
> 
> operator precedence has nothing to do with it -- it's not an
> operator, and it's not documented as being one.

True, and I understand this subtlety.  The difference, however, may be lost
to newbies.  A clear description of the difference in the Reference and 
Tutorial might be benificial.

> </F>

-- 
Robert Kern
kern at caltech.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter



More information about the Python-list mailing list