Coding standard: Prefixing variables to indicate datatype

Andrew Bennetts andrew-pythonlist at puzzling.org
Fri Jan 17 02:50:44 EST 2003


On Fri, Jan 17, 2003 at 07:02:01AM +0000, root at silmarill.org wrote:
> In article <c76ff6fc.0301161331.27350f1a at posting.google.com>, John Machin wrote:
> > 
> > 2. string.join()???? Are you still using Python 1.5???? Update now!!!!
> 
> I always use string.join because ''.join feels counter-intuitive,
> because you're joining list. Sort of like saying 'bank maria went to'.

I prefer str.join('', [...]) -- the best of both worlds :)

-Andrew.






More information about the Python-list mailing list