[Python-Dev] Embedded Python:: C/Python: Is Py_Finalize() necessary between embedded function calls?
Oleg Broytmann
phd at phd.pp.ru
Sun Feb 25 15:48:52 CET 2007
On Fri, Feb 23, 2007 at 04:24:19AM -0800, Sydney Pang wrote:
> do I have to call Py_Finalize() at
> the end of each Python embedded C function?
As far I understand you only need to call Py_Initialize() and
Py_Finalize() once per every embedded interpreter, not for an every
function.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-Dev
mailing list