String concatenation

Steve Holden sholden at holdenweb.com
Fri Jun 25 08:35:16 EDT 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 ...

regards
  Steve



More information about the Python-list mailing list