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

Attachment: locker.py
Description: Binary data

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to