[PyQt] Possible bug in QReadLocker and Python 2.7

Daniele Esposti expo at expobrain.net
Tue Oct 12 15:50:21 BST 2010


Running the attached test under Python 2.7 raises an attribute error:

Traceback (most recent call last):
  File "locker.py", line 11, in <module>
	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 works well using Python 2.6.6, PyQt4 4.7.7-1, sip 4.11.1
under Windows and Linux.
Under Windows I'm using the binary package; under Linux I'm using the
source code.

Is this a bug in QReadLocker() bindings ?


-- 
Daniele Esposti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locker.py
Type: application/octet-stream
Size: 166 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101012/186e90d9/attachment.obj>


More information about the PyQt mailing list