mysterious Py_Finalize

Achim Domma achim.domma at syynx.de
Sun Feb 3 13:23:34 EST 2002


Hi,

I'm still writing a ISAPI dll for IIS which embeds Python. After hours
searching for a reason why I could not import win32com I found out that all
my problems are gone if I NOT call Py_Finalize at the end of my code !?
If I use threads Py_Finalize crashes my IIS, if I don't use them Python
seems to remain in an undefined state after Py_Finalize.

Can somebody explain to me for what Py_Finalize is good for if it's best to
simply ignore it ?

greetings
Achim





More information about the Python-list mailing list