How do you register cleanup code to be run after script execution?
Ben Finney
bignose-hates-spam at and-benfinney-does-too.id.au
Mon May 10 01:48:51 EDT 2004
On 08 May 2004 13:09:36 GMT, use dmgass at hotmail dot com wrote:
> I'm writing a module and when it is imported by a script I want some
> code automatically executed when the importing script is finished
> executing.
I'm not aware of any way to do what you want at the module level. What
are you trying to accomplish that isn't satisfied by having objects do
their cleanup themselves, in __del__() functions?
--
\ "We must become the change we want to see." -- Mahatma Gandhi |
`\ |
_o__) |
Ben Finney <http://bignose.squidly.org/>
More information about the Python-list
mailing list