diff options
| author | Christian Tismer <tismer@stackless.com> | 2021-09-22 14:50:50 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2021-09-23 15:28:53 +0200 |
| commit | a4c432bc007d515b843b30765dfa0b82851255b9 (patch) | |
| tree | feb79ba09fb67c25d699a725d7b1a116268d9243 /sources/pyside6/doc/tutorials | |
| parent | 8878f9980d873cccc8f67cc6aed60929396872f2 (diff) | |
shiboken6: Fix an impossible reference to type_new
[ChangeLog][shiboken6] It is now possible to derive classes from
enum types like `QtCore.Key` in earlier Python versions.
In SbkEnumTypeTpNew the reference to `PyType_Type.tp_new` was
made through `PyType_GetSlot` in a Limited API compatible way.
Unfortunately, `PyType_GetSlot` works for non-heaptypes in
Python 3.10, only, and `PyType_Type is not a heaptype.
This was found while creating a minimum example to prove that
the PyPy implementation of type_new is not correct.
Task-number: PYSIDE-535
Change-Id: Ibe300f4670d9db6d29fbdeb1d147e1a074ec23c6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials')
0 files changed, 0 insertions, 0 deletions
