[python-win32] PythonScript, unloading the Python engine

Mark Hammond mhammond at skippinet.com.au
Mon Aug 28 14:25:34 CEST 2006


> Hi,
>
> Is it possible to (forcibly) unload the python engine after executing
> a python script?

Nope - Python has no facility for unloading extension modules, which means
that repeated Inits and Terms in the same process tends to be problematic -
and as a result we don't finalize at all.  We used to, but it didn't release
anywhere near everything and the pain was worse than the gain.

Mark



More information about the Python-win32 mailing list