views:

74

answers:

1

I'm using Python ver 2.6.4

There is a function I have to call from a C library when my extension module exits/is unloaded. What would be the equivalent of atexit for a C extension module?

+2  A: 

Py_AtExit()

Ignacio Vazquez-Abrams