Re: Threading the Python interpreter

2008-02-19 Thread Douglas Wells
In article <[EMAIL PROTECTED]>, Nick Stinemates <[EMAIL PROTECTED]> writes: > MooJoo wrote: > > Since I'm running each python instance in a new process, I don't believe > > that there is a problem and, in my testing so far, I haven't encountered > > anything that would lead me to believe there

Re: Threading the Python interpreter

2008-02-18 Thread Martin v. Löwis
MooJoo wrote: > I've read that the Python interpreter is not thread-safe Just to counter this misconception: the Python interpreter *is* thread-safe. It's just that it won't run in parallel with itself on multiple CPUs in a single process. Regards, Martin -- http://mail.python.org/mailman/listin

Re: Threading the Python interpreter

2008-02-18 Thread Gabriel Genellina
En Mon, 18 Feb 2008 22:47:40 -0200, MooJoo <[EMAIL PROTECTED]> escribió: > I've read that the Python interpreter is not thread-safe but are there > any issues in creating threads that create new processes (not threads) > that run new instantiations of python? What I'm doing is subclassing the >

Re: Threading the Python interpreter

2008-02-18 Thread Nick Stinemates
MooJoo wrote: > I've read that the Python interpreter is not thread-safe but are there > any issues in creating threads that create new processes (not threads) > that run new instantiations of python? What I'm doing is subclassing the > threading.Thread and, in the run method, I'm making a call

Re: Threading the Python interpreter

2008-02-18 Thread Steve Holden
MooJoo wrote: > I've read that the Python interpreter is not thread-safe but are there > any issues in creating threads that create new processes (not threads) > that run new instantiations of python? What I'm doing is subclassing the > threading.Thread and, in the run method, I'm making a call