This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mpaolini
Recipients Phillip.M.Feldman@gmail.com, mpaolini
Date 2020-09-07.21:49:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599515377.55.0.33688060043.issue41740@roundup.psfhosted.org>
In-reply-to
Content
also worth noting, the start argument is type checked instead. Maybe we could apply the same checks to the items of the iterable?

python3 -c "print(sum(('a', 'b', 'c'), start='d'))"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: sum() can't sum strings [use ''.join(seq) instead]


see https://github.com/python/cpython/blob/c96d00e88ead8f99bb6aa1357928ac4545d9287c/Python/bltinmodule.c#L2310
History
Date User Action Args
2020-09-07 21:49:37mpaolinisetrecipients: + mpaolini, Phillip.M.Feldman@gmail.com
2020-09-07 21:49:37mpaolinisetmessageid: <1599515377.55.0.33688060043.issue41740@roundup.psfhosted.org>
2020-09-07 21:49:37mpaolinilinkissue41740 messages
2020-09-07 21:49:37mpaolinicreate