Antoine Pitrou <pit...@free.fr> added the comment:

I think that Inada is right: there's too much impact on memory consumption and 
garbage collection to call this an optimization.

Serhiy suggested removing the cache.  But, once you remove the cache, you're 
going to iterate on all values of all parent classes' dicts to find which 
values are __dunder__ methods.  This risks being much more expensive for 
classes with tens or hundreds of namespace entries, making the optimization 
even less interesting.

So in the end I think I'm going to reject this issue.

----------
resolution:  -> rejected
stage: patch review -> resolved
status: open -> pending

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

Reply via email to