Message239408
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. |
|
Date |
User |
Action |
Args |
2015-03-27 14:53:25 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, vsinitsyn |
2015-03-27 14:53:25 | r.david.murray | set | messageid: <1427468005.39.0.347624565078.issue23787@psf.upfronthosting.co.za> |
2015-03-27 14:53:25 | r.david.murray | link | issue23787 messages |
2015-03-27 14:53:25 | r.david.murray | create | |
|