ff062da91ca42f483a3a7c739835de3825c7898d,Orange/canvas/utils/qtcompat.py,,toPyObject,#Any#,25
Before Change
QVariant does not export it just return the object unchanged.
if sip_getapi("QVariant") > 1:
return obj
else:
try:
return obj.toPyObject()
except AttributeError:
return obj
After Change
if HAS_QVARIANT:
return variant
elif isinstance(variant, QVariant):
return variant.toPyObject()
else:
raise TypeError("Expected a "QVariant"")
if HAS_QVARIANT:
toBitArray = methodcaller("toBitArray")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: biolab/orange3
Commit Name: ff062da91ca42f483a3a7c739835de3825c7898d
Time: 2013-02-13
Author: janez.demsar@gmail.com
File Name: Orange/canvas/utils/qtcompat.py
Class Name:
Method Name: toPyObject
Project Name: pymc-devs/pymc3
Commit Name: e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e
Time: 2019-02-16
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/distributions/mixture.py
Class Name: Mixture
Method Name: comp_dists
Project Name: biolab/orange3
Commit Name: 1e42cdbc38abf326aabf9776d653bd4fdc05c437
Time: 2013-02-13
Author: janez.demsar@gmail.com
File Name: Orange/canvas/utils/qtcompat.py
Class Name:
Method Name: toPyObject