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 -- http://mail.python.org/mailman/listinfo/python-list