aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-04-25 17:49:25 +0200
committerChristian Tismer <tismer@stackless.com>2018-06-21 14:42:51 +0000
commitaa75437f9119d997dd290471ac3e2cc88ca88bf1 (patch)
tree25bd1488cde8b60c14190d40dd03725f11f8d537 /setup.py
parent27a3402507364e15c37fcabfa025c2fed36146f0 (diff)
Fix QVariant conversions when using PySequences
Currently we transform QVariant arguments to internal types, starting from the Python ones, to others related to shiboken. After checking if the current object is a PyDict we proceed to check if it's a PySequence. PySequence is the complementary 'sequence-like' type of PyDict, and allows finite and infinite sequences, like lists or generators. The problem is that when one implements a class which includes the __getitem__ method, Python already thinks that it correspond to a PySequence, then we try to get the elements to transform into a QList<QVariant> but it fails at the first attempt. The solution was to not assume that all PySequences have finite length (or a length), and also to have a fallback case similarly to the PyDict treatment, wrapping the PyObject as a QVariant. Task-number: PYSIDE-641 Change-Id: I3b755f47ed076147024de38e5e0a86932d981f88 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions