RFC: Proposal: Deterministic Object Destruction (Posting On Python-List Prohibited)

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Mar 3 21:24:32 EST 2018


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



More information about the Python-list mailing list