[Python-ideas] The non-obvious nature of str.join (was Re: sum(...) limitation)

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 11 18:46:43 CEST 2014


On Mon, Aug 11, 2014 at 12:37 PM, Stephen Hansen <me+python at ixokai.io>
wrote:

> Then we'll have two obvious solutions since "".join() and the huge body of
> code using it won't go away.


''.join() is not an obvious solution to concatenation.  It is a fringe case
of a solution to a completely different problem - building a delimited
string.  Buy the same token, we have "two obvious solutions" to negation:
-x and 0-x.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140811/ec5ebf02/attachment.html>


More information about the Python-ideas mailing list