• Neil Schemenauer's avatar
    Add has_finalizer predictate function. Use it when deciding which · a765c120
    Neil Schemenauer yazdı
    objects to save in gc.garbage.  This should be the last change needed to
    fix SF bug 477059: "__del__ on new classes vs. GC".
    
    Note that this change slightly changes the behavior of the collector.
    Before, if a cycle was found that contained instances with __del__
    methods then all instance objects in that cycle were saved in
    gc.garbage.  Now, only objects with __del__ methods are saved in
    gc.garbage.
    a765c120
gcmodule.c 22 KB