Question: Threading and embedding python in an application

David Harrison daha at best.com
Mon May 9 22:51:43 EDT 2005


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?  Does
python have to be in control to allow threads to run?
Would it be better to arrange things such that the
file is processed using PyRun_SimpleFile?

		David S. Harrison
		(daha at best.com)





More information about the Python-list mailing list