[Python-3000] atexit module problems/questions

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Aug 5 03:25:18 CEST 2007


skip at pobox.com wrote:
> I can see a situation where you might register the same function
> multiple times with different argument lists, yet unregister takes only the
> function as the discriminator.

One way to fix this would be to remove the ability to
register arguments along with the function. It's not
necessary, as you can always use a closure to get
the same effect. Then you have a unique handle for
each registered callback.

--
Greg


More information about the Python-3000 mailing list