• Kevin Modzelewski's avatar
    Add tp_subclasses so we can update slots on subclasses · b42de323
    Kevin Modzelewski authored
    ie if we set __getattribute__ on a superclass, we have to update
    tp_getattro on all subclasses.  We've always been broken on this, but
    this didn't really matter as much until now since we would internally
    check __getattribute__ and not tp_getattro.
    
    tp_subclasses is a list of weakrefs, which means that we need weakref
    support before we can start finalizing classes.  which means we have to
    add a whole slew of things into the bootstrapping section.
    
    We should probably just do this in a more systematic way, but I'm
    not sure what that would be...
    b42de323
sys.cpp 11.4 KB