• Kevin Modzelewski's avatar
    Allow attrwrappers with deallocd underlying objects · 2d565c4c
    Kevin Modzelewski authored
    ie something like "print C().__dict__"
    
    The attrwrapper objects don't (arnd probably shouldn't) keep their underlying
    objects alive.  Previous to this commit they would just try to access their
    freed underlying object and crash.
    
    With this commit, object deallocation will check if there is an attrwrapper,
    and if so convert it to be privately-backed.
    2d565c4c
classobj.cpp 70.2 KB