Question: Threading and embedding python in an application

"Martin v. Löwis" martin at v.loewis.de
Tue May 10 01:21:32 EDT 2005


David Harrison wrote:
> I am working on an application on Mac OS X that calls out
> to python via PyImport_ImportModule().  I find that if
> the imported module creates and starts a python thread,
> the thread seems to be killed when the import of
> the module is complete.   Is this expected?  

No. Most likely, the code in the thread raises an
exception that is never caught. Can you see stderr of
the application?

Regards,
Martin



More information about the Python-list mailing list