N
Neal Becker
Code at global scope in a module is run at module construction (init). Is
it possible to hook into module destruction (unloading)?
it possible to hook into module destruction (unloading)?
Code at global scope in a module is run at module construction (init). Is
it possible to hook into module destruction (unloading)?
Try the __del__ method.
Seehttp://docs.python.org/ref/customization.htmlfor the docs.
don't really think python does module unloading though. del module
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.