[issue39829] __len__ called twice in the list() constructor

Eric Snow report at bugs.python.org
Mon Mar 9 12:09:26 EDT 2020


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

FWIW, I encouraged Kim to file this.  Thanks Kim!

While it isn't part of any specification, it is an unexpected change in behavior that led to some test failures.  So I figured it would be worth bringing up. :)  I did find it surprising that we were not caching the result, but don't think that's necessarily a problem.

All that said, the change did not actually break anything other than some tests (not the code they were testing).  So I don't have a problem with closing this.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list