[Python-3000] What to do about "".join([b""])?
Brett Cannon
brett at python.org
Sat Nov 3 23:26:06 CET 2007
On 11/3/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Barry Warsaw wrote:
> > From a purity standpoint, I agree with removing the implicit
> > str'ing. I'm just sure what is more practical.
>
> If it's really considered worth providing this extra
> convenience, how about a different method for it:
>
> "".joinstr(...)
>
> Just as convenient, and explicit rather than implicit,
> so it won't cause any surprises.
Convenience of that over either of these::
''.join(map(str, args))
''.join(str(x) for x in args)
is just not worth tacking on another method to str in my opinion.
-Brett
More information about the Python-3000
mailing list