[issue1283110] Give __len__() advice for "don't know"
Raymond Hettinger
report at bugs.python.org
Tue Feb 17 03:30:44 CET 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
It should still be documented that __len__ can be used for this purpose.
The __length_hint__ attribute is mainly for iterators because they are
not allowed to have a __len__ as that would affect their boolean value.
----------
assignee: -> georg.brandl
nosy: +georg.brandl
resolution: out of date ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1283110>
_______________________________________
More information about the Python-bugs-list
mailing list