Python 3.12: Fix the structure of class property
authorChristian Tismer <tismer@stackless.com>
Tue, 14 Feb 2023 13:46:22 +0000 (14:46 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 8 Feb 2024 08:13:11 +0000 (11:13 +0300)
commit232e8eed3ba38710a6ea7de2b3e6e9b0aa17d2f5
tree33b6df18aeaa32e9fb5e8f9bd9dad2243971375e
parent435c0722deb1fd71428a37023d672ed70e00a1bd
Python 3.12: Fix the structure of class property

There is a PySide bug in Python 3.10 already: The structure for
classproperty derives from the property structure. This was extended
in Python 3.10, already, but the type generation check was made more
exhaustive in Python 3.12 and recognized that.

This change is only for making the compiler/C API happy.
In order to use the extension field, it is necessary to do a runtime
check because of the Limited API.

Task-number: PYSIDE-2230
Change-Id: I88dcaa11589ff41852f08fa2defa5200a0dd4eb6
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit edfd9a5ad174a48f8d7da511dc6a1c69e931a418)

Gbp-Pq: Name Python-3.12-Fix-the-structure-of-class-property.patch
sources/pyside2/libpyside/feature_select.cpp