[Python-ideas] Fast sum() for non-numbers
Vito De Tullio
vito.detullio at gmail.com
Thu Jul 4 06:32:55 CEST 2013
Steven D'Aprano wrote:
>>> It's unfortunate that Python uses + for concatenation,
>>
>> Is it? I'm very happy with it myself.
>
> Yes. If Python used & for concatenation, we wouldn't have to worry about
> sum(lists or strings or tuples) being quadratic, because people wouldn't
> call sum on lists, strings or tuples.
yeah, they would try with all() :D
--
ZeD
More information about the Python-ideas
mailing list