Why doesn't join() call str() on its arguments?

Michael Hoffman cam.ac.uk at mh391.invalid
Thu Feb 17 04:53:12 EST 2005


Max M wrote:

>  >>> ','.join(map(str, l))
> '1,2,3,four'
> 
> Is this really that hard to do, that you want it in the library?

I think it's a sufficiently common use case that having to do that
is a wart.
-- 
Michael Hoffman



More information about the Python-list mailing list