[issue18305] [patch] Fast sum() for non-numbers
Terry J. Reedy
report at bugs.python.org
Mon Dec 8 00:30:34 CET 2014
Terry J. Reedy added the comment:
Sergey, please stop calling the current documented behavior a bug. https://docs.python.org/3/library/functions.html#sum says 'The iterable‘s items are normally numbers ... To concatenate a series of iterables, consider using itertools.chain().
To make a change, there must be discussion and approval on python-ideas, including by Guido. I believe that GvR's rejection of optimizing for strings covers optimizing for other sequences. If you want to continue, make a pep-like post there that summarizes the discussion here and makes your current proposal.
----------
versions: +Python 3.5 -Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18305>
_______________________________________
More information about the Python-bugs-list
mailing list