string concatenation

Peter Otten __peter__ at web.de
Mon Jun 28 11:21:15 CEST 2004


Reinhold Birkenfeld wrote:

> Where I would prefer the variant
> 
> str.join("", sequence)
> 
> as it is more readable for beginners (and demonstrates the concept of
> invoking member methods as well ;)

If it prevents newbies from doing

import string
string.join("", sequence)

so be it. Real men use "".join(seq) :-)

Peter

PS: And women, too.
 




More information about the Python-list mailing list