[Tutor] Concatenation vs formatting
Richard Lovely
roadierich at googlemail.com
Mon Sep 1 13:59:36 CEST 2008
Just a couple of quick questions:
What differences are there in efficency (i.e. time and memory) between
string concatenation ("foo" + "bar") and printf style formatting
("%s%s" % ("foo","bar")).
Is there any place where one is better than the other, and any places
where either should be avoided? (I tend to program entirely using
formatting.)
Thanks
--
Richard "Roadie Rich" Lovely, part of the JNP|UK Famile
www.theJNP.com
More information about the Tutor
mailing list