Py_Finalize

Pablo Yabo pyabo at novamens.com
Fri Feb 20 08:49:31 EST 2004


Hi,
I embeded Python in a C++ application to support some scripts. I start it
using Py_Initialize() and after using running the scripts I call
Py_Finalize(). The problem that I experienced is that the memory usage of
the process doesn't decrease after the Py_Finalize().
If I call again Py_Initialize() and then load some modules, the memory usage
increase, but it never decrease when calling Py_Finalize().
How can I do a complete cleanup of the python heap?

Thanks on advanced,

Pablo Yabo






More information about the Python-list mailing list