Steven D'Aprano wrote:
Not just the class __dict__. You would have to do a full search of the MRO looking for any superclass which defines such methods.
That could be reduced a lot by making it a type slot. But it would still increase the overhead of every refcount change by at least a factor of two, as a rough estimate. -- Greg -- https://mail.python.org/mailman/listinfo/python-list