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 r.david.murray
Recipients docs@python, r.david.murray, vsinitsyn
Date 2015-03-27.14:53:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427468005.39.0.347624565078.issue23787@psf.upfronthosting.co.za>
In-reply-to
Content
In python3 the docstring does say iterable.  It wouldn't be a bad thing to change it in 2.7, but it is not much of a priority.  iterable vs sequence makes no difference to the str question: a string is an iterable.  The docstring explicitly says strings are excepted, as you mentioned, so there's nothing to do about that.

I note that python3 also does not support iterables of byte-like objects.  I'm not sure if this would actually be helpful to add to the docstring, though, since sum(b'abc') works and a docstring is probably not an appropriate place to go into detail as to why.
History
Date User Action Args
2015-03-27 14:53:25r.david.murraysetrecipients: + r.david.murray, docs@python, vsinitsyn
2015-03-27 14:53:25r.david.murraysetmessageid: <1427468005.39.0.347624565078.issue23787@psf.upfronthosting.co.za>
2015-03-27 14:53:25r.david.murraylinkissue23787 messages
2015-03-27 14:53:25r.david.murraycreate