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 Phillip.M.Feldman@gmail.com
Recipients Phillip.M.Feldman@gmail.com
Date 2020-09-07.19:21:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599506489.43.0.159938522754.issue41740@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure whether this is a bug or a feature request, but it seems as though the following should produce the same result:

In [1]: 'a' + 'b' + 'c'
Out[1]: 'abc'

In [2]: sum(('a', 'b', 'c'))
TypeError Traceback (most recent call last)
in
----> 1 sum(('a', 'b', 'c'))

TypeError: unsupported operand type(s) for +: 'int' and 'str'

The error message is confusing (there is no integer).
History
Date User Action Args
2020-09-07 19:21:29Phillip.M.Feldman@gmail.comsetrecipients: + Phillip.M.Feldman@gmail.com
2020-09-07 19:21:29Phillip.M.Feldman@gmail.comsetmessageid: <1599506489.43.0.159938522754.issue41740@roundup.psfhosted.org>
2020-09-07 19:21:29Phillip.M.Feldman@gmail.comlinkissue41740 messages
2020-09-07 19:21:29Phillip.M.Feldman@gmail.comcreate