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 ezio.melotti
Recipients Ramchandra Apte, docs@python, ezio.melotti, gdr@garethrees.org, pitrou, r.david.murray, rhettinger, terry.reedy
Date 2013-11-17.00:07:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384646854.5.0.890748154868.issue19362@psf.upfronthosting.co.za>
In-reply-to
Content
I think it's better to do:
-Return the number of items of a sequence or mapping.
+Return the number of items of a sequence or container.

While it's true that most sequences are clearly containers (e.g. lists), the same is not so evident for other types like bytes or strings.
I'm also starting from the assumption that people reading the docstring of len just started with Python or programming in general, so it's more important to keep it simple and understandable rather than being 100% accurate.
History
Date User Action Args
2013-11-17 00:07:34ezio.melottisetrecipients: + ezio.melotti, rhettinger, terry.reedy, pitrou, r.david.murray, docs@python, gdr@garethrees.org, Ramchandra Apte
2013-11-17 00:07:34ezio.melottisetmessageid: <1384646854.5.0.890748154868.issue19362@psf.upfronthosting.co.za>
2013-11-17 00:07:34ezio.melottilinkissue19362 messages
2013-11-17 00:07:34ezio.melotticreate