[Python-3000] What to do about "".join([b""])?
Guido van Rossum
guido at python.org
Sun Nov 4 00:03:24 CET 2007
On 11/3/07, Brett Cannon <brett at python.org> wrote:
> 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.
Exactly.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list