Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Jack Nutting
> > Including an entire "custom" version of Python just seems like a > > bad solution to me. It may be the only solution, depending on > > various other circumstances, but it seems kind of sad to say "well, > > OS X ships with Python.framework, but it can't be used to write a > > Python IDE". > >

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Bob Ippolito
On May 16, 2005, at 4:32 PM, [EMAIL PROTECTED] wrote: > > On May 16, 2005, at 2:22 PM, Bob Ippolito wrote: > > >> >> On May 16, 2005, at 2:53 PM, [EMAIL PROTECTED] wrote: >> >> >>> I should be able to directly send the signal from the IDE to the >>> targeted app (since it's a child of the IDE),

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Bob Ippolito
On May 16, 2005, at 4:29 PM, [EMAIL PROTECTED] wrote: > On May 16, 2005, at 2:39 PM, Ronald Oussoren wrote: > > >> On 16-mei-2005, at 21:28, [EMAIL PROTECTED] wrote: >> >> >>> The problem isn't the Cocoa threads (Cocoa knows that the >>> application is multithreaded). The problem is that the

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
On May 16, 2005, at 2:22 PM, Bob Ippolito wrote: > > On May 16, 2005, at 2:53 PM, [EMAIL PROTECTED] wrote: > >> I should be able to directly send the signal from the IDE to the >> targeted app (since it's a child of the IDE), and the standard >> "catch a unix signal invokes the debugger" act

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
On May 16, 2005, at 2:39 PM, Ronald Oussoren wrote: > > On 16-mei-2005, at 21:28, [EMAIL PROTECTED] wrote: > >> The problem isn't the Cocoa threads (Cocoa knows that the >> application is multithreaded). The problem is that the python >> code that is executing in a threading.Thread calls

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Ronald Oussoren
On 16-mei-2005, at 21:28, [EMAIL PROTECTED] wrote: On May 16, 2005, at 2:12 PM, Ronald Oussoren wrote: On 16-mei-2005, at 20:53, [EMAIL PROTECTED] wrote: NO! That is really really horribly bad to do. Working around a bug in PyObjC by writing code that will break in correct versions of PyObjC is

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
On May 16, 2005, at 2:12 PM, Ronald Oussoren wrote: > > On 16-mei-2005, at 20:53, [EMAIL PROTECTED] wrote: > >>> >>> NO! That is really really horribly bad to do. Working around a >>> bug in PyObjC by writing code that will break in correct versions >>> of PyObjC is absolutely horrible. You sh

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Bob Ippolito
On May 16, 2005, at 2:53 PM, [EMAIL PROTECTED] wrote: > > On May 16, 2005, at 1:22 PM, Bob Ippolito wrote: > > >> >> On May 16, 2005, at 2:01 PM, [EMAIL PROTECTED] wrote: >> >>> The debugged app works like that, but the way that the "remote >>> object" interface works is also designed to use sync

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Ronald Oussoren
On 16-mei-2005, at 20:53, [EMAIL PROTECTED] wrote: NO! That is really really horribly bad to do. Working around a bug in PyObjC by writing code that will break in correct versions of PyObjC is absolutely horrible. You should NEVER release the lock unless you own it. Here, then, is probably the

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Ronald Oussoren
On 16-mei-2005, at 20:01, [EMAIL PROTECTED] wrote: So, it appears that performSelectorOnMainThread needs some way to release the lock to let Python code in the main thread be executed. Any suggestions for workarounds? Update to PyObjC from svn and see if that makes a difference. Can't do that -

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
On May 16, 2005, at 1:22 PM, Bob Ippolito wrote: > > On May 16, 2005, at 2:01 PM, [EMAIL PROTECTED] wrote: >>> >> >> The debugged app works like that, but the way that the "remote >> object" interface works is also designed to use sync TCP on the host >> side. Since it's pure python, I didn't wan

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Bob Ippolito
On May 16, 2005, at 2:01 PM, [EMAIL PROTECTED] wrote: > On May 16, 2005, at 11:59 AM, Bob Ippolito wrote: > > >> On May 16, 2005, at 12:35 PM, [EMAIL PROTECTED] wrote: >> >>> So I'm reworking how debugging is handled in PyOXIDE and I've come >>> to a problem (several, but this is the biggy for th

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
On May 16, 2005, at 11:59 AM, Bob Ippolito wrote: > > On May 16, 2005, at 12:35 PM, [EMAIL PROTECTED] wrote: > > >> So I'm reworking how debugging is handled in PyOXIDE and I've come >> to a problem (several, but this is the biggy for the morning). >> >> My goal is to separate interacting with

Re: [Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread Bob Ippolito
On May 16, 2005, at 12:35 PM, [EMAIL PROTECTED] wrote: > So I'm reworking how debugging is handled in PyOXIDE and I've come > to a problem (several, but this is the biggy for the morning). > > My goal is to separate interacting with the (remote) debugged > client in a separate thread, which f

[Pythonmac-SIG] Python threading.Thread vs PyObjC performOnMainThread

2005-05-16 Thread gandreas
So I'm reworking how debugging is handled in PyOXIDE and I've come to a problem (several, but this is the biggy for the morning).My goal is to separate interacting with the (remote) debugged client in a separate thread, which forwards messages to the main thread as needed to run the debugger UI (si