PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 686 - Request to make Q[Mutex|Read|Write]Locker context managers
: Request to make Q[Mutex|Read|Write]Locker context managers
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: All All
: P4 enhancement
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-15 16:28 EET by rulfzid
Modified: 2011-05-26 17:03 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rulfzid 2011-02-15 16:28:35 EET
As per Matti Airas request on the mailing list
(http://groups.google.com/group/pyside/browse_thread/thread/dbc59cdb82bd880b),
I'm filing this here.

In PyQt, QMutexLocker, QReadLocker, and QWriteLocker are available as context
manager, allowing them to be used with the with statement:

    with QReadLocker(lock):
        # do stuff      

It would be nice to have this capability in PySide.
Comment 1 Hugo Parente Lima 2011-02-15 16:41:05 EET
I nice enhancement IMO, prioritizing as P4 due to our policy of only fix bugs
before the 1.0 release.
Comment 2 Hugo Parente Lima 2011-05-18 00:47:41 EEST
Fixed in commits:

shiboken/8c1ef1813af90f9c7757e2f6e64a2dd7ad51dcf7
pyside/75d27311e5780bd12ab26380d31b100144d9aaf7
Comment 3 renato filho 2011-05-26 17:03:58 EEST
PySide release 1.0.3