Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-28 Thread Chris Angelico
On Tue, Apr 29, 2014 at 8:50 AM, Matthew Pounsett wrote: > Thanks, I'll keep all that in mind. I have to wonder how much of a problem > it is here though, since I was able to demonstrate a functioning fork inside > a new thread further up in the discussion. > Yeah, it's really hard to pin down

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-28 Thread Matthew Pounsett
On Sunday, 27 April 2014 10:33:38 UTC-4, Chris Angelico wrote: > In most contexts, "thread unsafe" simply means that you can't use the > same facilities simultaneously from two threads (eg a lot of database > connection libraries are thread unsafe with regard to a single > connection, as they'll

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-27 Thread Chris Angelico
On Mon, Apr 28, 2014 at 12:16 AM, Matthew Pounsett wrote: > On Friday, 25 April 2014 10:05:03 UTC-4, Chris Angelico wrote: >> First culprit I'd look at is the mixing of subprocess and threading. >> It's entirely possible that something goes messy when you fork from a >> thread. > > I liked the th

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-27 Thread Matthew Pounsett
On Friday, 25 April 2014 14:58:56 UTC-4, Ned Deily wrote: > FWIW, the Python 2 version of subprocess is known to be thread-unsafe. > There is a Py2 backport available on PyPI of the improved Python 3 > subprocess module: Since that't the only thread that calls anything in subprocess, and I'm o

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-27 Thread Matthew Pounsett
On Friday, 25 April 2014 10:05:03 UTC-4, Chris Angelico wrote: > First culprit I'd look at is the mixing of subprocess and threading. > It's entirely possible that something goes messy when you fork from a > thread. I liked the theory, but I've run some tests and can't reproduce the error that w

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-25 Thread Ned Deily
In article , Chris Angelico wrote: > On Fri, Apr 25, 2014 at 11:43 PM, Matthew Pounsett > wrote: > > If I insert that object into the test code and run it instead of > > MyThread(), I get the error. I can't see anything in there that should > > cause problems for the threading module though

Re: MacOS 10.9.2: threading error using python.org 2.7.6 distribution

2014-04-25 Thread Chris Angelico
On Fri, Apr 25, 2014 at 11:43 PM, Matthew Pounsett wrote: > If I insert that object into the test code and run it instead of MyThread(), > I get the error. I can't see anything in there that should cause problems > for the threading module though... especially since this runs fine on another >