Terry J. Reedy <tjre...@udel.edu> added the comment:

The only specification is that len(ob) calls ob.__len__ and that ob.__len__ 
should return an 'integer >= 0'.  (Adding side effects goes beyond that spec.)  
I agree that a detectable internal in list is not a bug.  Unless there is a 
realistic performance enhancement in caching the result of the first call, this 
issue should be closed.

----------
nosy: +terry.reedy
type: behavior -> performance

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to