String concatenation

Steve Holden sholden at
Fri Jun 25 14:35:16 CEST 2004

Duncan Booth wrote:

> Finally, a method call on a bare string (''.join, or '\n'.join) looks 
> sufficiently bad that if, for some reason, you don't want to give it a name 
> as above, I would suggest using the alternative form for calling it:
>    str.join('\n', aList)
> rather than:
>    '\n'.join(aList)

This is, of course, pure prejudice. Not that there's anything wrong with 
that ...


More information about the Python-list mailing list