Author rhettinger
Recipients Ramchandra Apte, Sergey, aleax, ethan.furman, gvanrossum, jcea, oscarbenjamin, rhettinger, serhiy.storchaka, terry.reedy
Date 2014-12-09.08:18:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418113131.35.0.436549594643.issue18305@psf.upfronthosting.co.za>
In-reply-to
Content
Guido, do you care to close this one?

Terry, has channeled you and thinks it may be against your wishes to turn sum() into a general purpose sequence concatenator.   I also seem to recall you expresses similar thoughts back when Alex Martelli first designed sum() many years ago.

If it helps, here is the guidance currently expressed in the docs for __builtin__.sum():

"""
For some use cases, there are good alternatives to sum(). The preferred, fast way to concatenate a sequence of strings is by calling ''.join(sequence). To add floating point values with extended precision, see math.fsum(). To concatenate a series of iterables, consider using itertools.chain().
"""
History
Date User Action Args
2014-12-09 08:18:51rhettingersetrecipients: + rhettinger, gvanrossum, aleax, terry.reedy, jcea, ethan.furman, Ramchandra Apte, serhiy.storchaka, oscarbenjamin, Sergey
2014-12-09 08:18:51rhettingersetmessageid: <1418113131.35.0.436549594643.issue18305@psf.upfronthosting.co.za>
2014-12-09 08:18:51rhettingerlinkissue18305 messages
2014-12-09 08:18:50rhettingercreate