[Python-Dev] sum(...) limitation
ethan at stoneleaf.us
Sat Aug 9 02:56:24 CEST 2014
On 08/08/2014 05:34 PM, Raymond Hettinger wrote:
> On Aug 8, 2014, at 11:09 AM, Ethan Furman <ethan at stoneleaf.us <mailto:ethan at stoneleaf.us>> wrote:
>>> So why not apply a similar optimization to sum() for strings?
>> That I cannot answer -- I find the current situation with sum highly irritating.
> It is only irritating if you are misusing sum().
Actually, I have an advanced degree in irritability -- perhaps you've noticed in the past?
I don't use sum at all, or at least very rarely, and it still irritates me. It feels like I'm being told I'm too dumb
to figure out when I can safely use sum and when I can't.
More information about the Python-Dev