delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/06/02:23:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <46DF9CAD.6000503@kleckner.net>
Date: Wed, 05 Sep 2007 23:22:37 -0700
From: Jim Kleckner <jek-cygwin2 AT kleckner DOT net>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Threading issue in cygwin python 2.5.1-2 ?
References: <46D8A577 DOT 1060908 AT kleckner DOT net> <46DF52B8 DOT 7000509 AT kleckner DOT net> <fbo5p9$34n$1 AT sea DOT gmane DOT org>
In-Reply-To: <fbo5p9$34n$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com


Steve Holden wrote:
> Jim Kleckner wrote:
>> Jim Kleckner wrote:
>>> I get an exception running a Python example that uses threads
>>> that I downloaded from the net (ASPN):
>>>   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965
>>
>> Would some kind soul try the example and let me know that it
>> does/doesn't work for you?  Setting debug print around the
>> code suggests that the third Lock object created causes the
>> exception.
>>
>> Thanks - Jim
>>
>
> Not sure this is going to help ...
>
> $ /usr/bin/python
> Python 2.5.1 (r251:54863, Aug 30 2007, 08:07:01)
> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
>
> Running the example on the above Python system I just see the command 
> prompt return with no program output whatsoever:
>
> sholden AT bigboy ~/Projects/Python
> $ /usr/bin/python test03.py

So it fails, but doesn't bring up the exception dialog.

>
>
> sholden AT bigboy ~/Projects/Python
> $
>
> Under a standard Windows 2.5.1 it created a window then appeared to 
> print random times until I clicked the "Done" button:
>
> C:\Steve\Projects\Python>python test0
> 0.303836168441
> 0.98021967508
> 0.254334126577
> ...
Yep, that's what it should do.

Thanks for checking.

Jim

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019