Executing code at module unload

Jp Calderone exarkun at intarweb.us
Tue Mar 18 16:06:47 EST 2003


On Tue, Mar 18, 2003 at 09:26:49PM +0300, Lexy Zhitenev wrote:
> [snip]
> 
> So, this code is executed in current module scope and only when it is
> unloaded. How to do this in C?
> 
> Regards, Lexy.
> 

  Define a finalizer, fini<module name>.

  Jp

-- 
"One World, one Web, one Program." - Microsoft(R) promotional ad
"Ein Volk, ein Reich, ein Fuhrer." - Adolf Hitler
-- 
 up 15 days, 14:00, 4 users, load average: 0.31, 0.14, 0.10





More information about the Python-list mailing list