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 405 - Cant do binary operations on flags
: Cant do binary operations on flags
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: All All
: P3 normal
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2010-10-07 14:30 EEST by Lauro Moura
Modified: 2010-10-13 13:49 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 Lauro Moura 2010-10-07 14:30:48 EEST
Trying to do binary operations between flags fails.

>>> a = Qt.ItemIsEnabled & Qt.NoItemFlags & ~Qt.NoItemFlags
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for &: 'ItemFlags' and 'ItemFlags'
[78656 refs]
>>>
Comment 1 Lauro Moura 2010-10-07 16:12:28 EEST
Fixed by removing uneeded check.

Shiboken commit: 9cf34f01876807559e018ad616fc4aa2fd6ddf05
Comment 2 renato filho 2010-10-13 13:49:14 EEST
released on PySide 0.4.2