matter of style and performance question with string cat'ing

Sean 'Shaleh' Perry shaleh at valinux.com
Mon May 7 18:35:51 EDT 2001


I find that I prefer the style:

s = '%s is %s' % (foo,bar)

as opposed to:

s = foo + ' is ' + bar

however, which is more efficient?  Usually this does not matter, but I am
curious.




More information about the Python-list mailing list