[Python-3000] join vs. add [was: Python 3000 Status Update (Long!)]
Fred L. Drake, Jr.
fdrake at acm.org
Thu Jun 21 22:14:29 CEST 2007
On Thursday 21 June 2007, Joel Bender wrote:
> I think this is clearer than sum():
> >>> join(['a', 'b', 'c'])
> 'abc'
>
> It wouldn't interfere with ''.join(), and ''.__add__() could be
> redirected to ''.__join__().
And then int.__join__ could be defined in confusing ways, too:
>>> join([4, 2])
42
There's something appealing about that specific example. ;-)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
More information about the Python-3000
mailing list