RE: Problem with embedded python - bug?

2005-04-29 Thread Ugo Di Girolamo
I have been having a few more discussions around about this, and I'm starting to think that this is a bug. My take is that, when I call Py_Finalize, the python thread should be shut down gracefully, closing the file and everything. Maybe I'm missing a call to something (?PyEval_FinalizeThreads

Re: Problem with embedded python

2005-04-26 Thread ugodiggi
Tom Cocagne wrote: > From looking at your example, it looks like you're making the problem FAR > more difficult than it needs to be. The main thing to keep in mind is that > Python threads do not correspond to operating system threads. In an > application using a single OS-level thread, you can use

Re: Problem with embedded python

2005-04-26 Thread Tom Cocagne
From looking at your example, it looks like you're making the problem FAR more difficult than it needs to be. The main thing to keep in mind is that Python threads do not correspond to operating system threads. In an application using a single OS-level thread, you can use as many Python threads a