[issue1283110] Give __len__() advice for "don't know"

Raymond Hettinger report at bugs.python.org
Sun Mar 14 19:02:32 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Looking at the patch years later, I'm thinking that this isn't needed or helpful.  Not needed because users haven't reported any misunderstandings in the interim.  Not helpful because the text looks forbidding and impenetrable, too much for a simple method like __len__().

I recommend closing this as out-of-date.  As Benjamin noted, the advent of __length_hint__ has mostly made this issue go away.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1283110>
_______________________________________


More information about the Python-bugs-list mailing list