Ezio Melotti added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19362> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com