diff options
author | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-06-25 16:09:20 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2018-07-03 07:38:55 +0000 |
commit | ffae5fe2f3312fdad7ef5880308dae4fd31fec94 (patch) | |
tree | 638f89dd1167da526fcb2bbde304c66a3421ef8b /sources/pyside2/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.cpp | |
parent | d16894f9bf9a2dfea1204469bf818a2ca7aeaa38 (diff) |
Add ownership condition for finite PySequences
After the fix for PYSIDE-441,
another issue appeared related to QVariants and PySequences
PYSIDE-641, which was related due to the nature of this
python data type.
The problem had the same root cause,
using PySequences assuming they are always finite,
but not including the case of a class implementing
the __getitem__ method without a length.
The fix for PYSIDE-441 did not include the option
of having incomplete PySequences, so this change
add an extra condition to transfer the ownership
of a incomplete PySequence element.
Task-number: PYSIDE-671
Change-Id: I72ed1f5ea51c0c5b5a40ec51ab850732eea3c3b9
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.cpp')
0 files changed, 0 insertions, 0 deletions