aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/minimalbinding/brace_pattern_test.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-09-03 11:49:22 +0200
committerChristian Tismer <tismer@stackless.com>2020-09-04 10:42:01 +0200
commit2bd69b9877f7b240512f03b4df042adf9acea744 (patch)
treecb5667739064968de6b2a723da2195cccbb9d277 /sources/shiboken2/tests/minimalbinding/brace_pattern_test.py
parentd02b070e23c757fa72a66a4049a659f4f5c5fc77 (diff)
Add compatibility with Nuitka
This patch is based upon the old PYSIDE-198 proposal. It worked with a few changes on Python 3 with limited API disabled. When enabling the Limited API, there were a lot of crashes. This was due to the way we need to get around access to certain implementations. This showed that the original patch was wrong in the expression of bindingmanager.cpp bool isCompiled = !isMethod && Py_TYPE(method)->tp_call != nullptr; After fixing this expression with bool isCompiled = !isMethod && Py_TYPE(method) != &PyCFunction_Type && Py_TYPE(method)->tp_call != nullptr; everything worked fine with the Limited API, too. Fixes: PYSIDE-198 Task-number: PYSIDE-829 Change-Id: I4f887c639628041682052e90ba4c72aa98284e9e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/minimalbinding/brace_pattern_test.py')
0 files changed, 0 insertions, 0 deletions