[Python-3000] atexit module problems/questions
Nick Coghlan
ncoghlan at gmail.com
Mon Aug 6 13:04:48 CEST 2007
skip at pobox.com wrote:
> skip> Yes, but an int is both much smaller than a function and can't be
> skip> involved in cyclic garbage.
>
> I also forgot to mention that inexperienced users will probably find it
> easier to hang onto an int than create a closure
a) functools.partial isn't that hard to use
b) we could create it automatically in atexit.register and return it
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list