semi-concatenated strings

Terry Reedy tjreedy at udel.edu
Fri May 31 13:03:21 EDT 2002


"Grant Griffin" <Grant_member at newsguy.com> wrote in message

> In article <mailman.1022791249.9251.python-list at python.org>, Skip
says...
> >At compile time all those strings are concatenated into one long
string.

> I guess I don't see what's so bad about having to put a "+" at the
end of
> each--except maybe that it brings on the need for a continuation
backslash:

Reread 'at compile time' (hopefully with linear algorithm) - only one
string object created.
+ works at runtime with n string objects in n*n time, possibly
repeatedly (if strings are in loop or function called more than once.
Quite aside from extra chars.

Terry J. Reedy






More information about the Python-list mailing list