Counting iterations

Terry Reedy tjreedy at udel.edu
Sun Apr 10 23:44:54 EDT 2005


"runes" <rune.strand at gmail.com> wrote in message 
news:1113114411.612323.187860 at g14g2000cwa.googlegroups.com...
>
> [Andrew Dalke]
>> I therefore disagree with the idea that simple
>> string concatenation is always to be eschewed
>> over string interpolation.

String cat (+) is fine for joining a few short strings.

> Andrew, what you write makes sense. I've never really tested it, just
> read it several places, fx here:
> http://www.python.org/moin/PythonSpeed/PerformanceTips#stringcat

This is about making long strings in situations where performance is an 
issue.

Terry J. Reedy






More information about the Python-list mailing list