From d0678ae7cac8f80a5b80042edb13335f438bb9ce Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Sat, 11 Sep 2021 15:51:02 +0200 Subject: PyPySide: Encapsulate type generation to be PyPy compatible Type generation in PyPy is critical. When type creation calls PyType_Ready, PyPy freezes the current state of the type object. That has fatal effects, because with the Limited API, we need to patch some types a little _after_ creation. The functionality of this patch is still the same, but type creation is totally encapsulated, and we can do a different implementation for PyPy. [ChangeLog][PySide6] PyPySide: Type creation was completely encapsulated. The implementation can now be rewritten for PyPy. Task-number: PYSIDE-535 Change-Id: Iae0cadb15b631344ae76cea8c104d4b69941c2b0 Reviewed-by: Friedemann Kleint --- sources/pyside6/libpyside/pysideproperty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/pyside6/libpyside/pysideproperty.cpp') diff --git a/sources/pyside6/libpyside/pysideproperty.cpp b/sources/pyside6/libpyside/pysideproperty.cpp index 70c59a89a..9f9340e19 100644 --- a/sources/pyside6/libpyside/pysideproperty.cpp +++ b/sources/pyside6/libpyside/pysideproperty.cpp @@ -106,7 +106,7 @@ static PyType_Slot PySidePropertyType_slots[] = { {Py_tp_getset, PySidePropertyType_getset}, {0, nullptr} }; -// Dotted modulename is crucial for SbkType_FromSpec to work. Is this name right? + static PyType_Spec PySidePropertyType_spec = { "2:PySide6.QtCore.Property", sizeof(PySideProperty), -- cgit v1.2.3