[capi-sig] How do I get the Objects to clean up after a python script exits?
stefan_ml at behnel.de
Sat Dec 15 15:08:46 CET 2012
Robert Steckroth, 12.12.2012 19:45:
> When I test my module in the interpreter it automatically cleans up any
> created objects. This is a very nice feature
> for my module and I would like to use it. How do I go about getting
> my scripts to send an exit cleanup single?
Depends on what you are trying to achieve, but you might want to look at
the atexit module.
(Shameless hint: Cython cleans up global variables for you automatically.)
More information about the capi-sig