[Python-3000] atexit module problems/questions

skip at pobox.com skip at pobox.com
Mon Aug 6 04:12:32 CEST 2007


    >> Then you need to hang onto the closure.  That might be some distance
    >> away from the point at which the function was registered.

    Greg> Well, if you get a unique ID, you need to hang onto that somehow,
    Greg> too.

Yes, but an int is both much smaller than a function and can't be involved
in cyclic garbage.

Skip



More information about the Python-3000 mailing list