[issue18305] [patch] Fast sum() for non-numbers

Ethan Furman report at bugs.python.org
Thu Jul 11 17:21:56 CEST 2013


Ethan Furman added the comment:

So making this a speed-up for generic objects using __iadd__ is out.

The only question remaining is: is it worth special casing a few specific objects (list, tuple, str) to optimise performance?

The str question has already been answered:  it's special cased to raise an error.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18305>
_______________________________________


More information about the Python-bugs-list mailing list