Re: [PyQt] Possible bug in QReadLocker and Python 2.7

2010-10-13 Thread Daniele Esposti
Thank you Phil, just my 2 cents On 12 October 2010 22:45, Phil Thompson wrote: > On Tue, 12 Oct 2010 15:50:21 +0100, Daniele Esposti > wrote: >> Running the attached test under Python 2.7 raises an attribute error: >> >> Traceback (most recent call last): >>   File "locker.py", line 11, in >>  

Re: [PyQt] Possible bug in QReadLocker and Python 2.7

2010-10-12 Thread Phil Thompson
On Tue, 12 Oct 2010 15:50:21 +0100, Daniele Esposti wrote: > Running the attached test under Python 2.7 raises an attribute error: > > Traceback (most recent call last): > File "locker.py", line 11, in > with QtCore.QReadLocker( lock ): > AttributeError: __exit__ > > Tested with Python

[PyQt] Possible bug in QReadLocker and Python 2.7

2010-10-12 Thread Daniele Esposti
Running the attached test under Python 2.7 raises an attribute error: Traceback (most recent call last): File "locker.py", line 11, in with QtCore.QReadLocker( lock ): AttributeError: __exit__ Tested with Python 2.7, PyQt4 4.7.7-1, sip 4.11.1 under Windows and Linux. The same code work