[docs] [issue19362] Documentation for len() fails to mention that it works on sets
report at bugs.python.org
Wed Oct 23 15:59:50 CEST 2013
Gareth Rees added the comment:
I considered suggesting "container", but the problem is that "container" is used elsewhere to mean "object supporting the 'in' operator" (in particular, collections.abc.Container has a __contains__ method but no __len__ method).
The abstract base class for "object with a length" is collections.abc.Sized, but I don't think using the term "sized" would be clear to users.
Python tracker <report at bugs.python.org>
More information about the docs