diff options
| author | Christian Tismer <tismer@stackless.com> | 2020-04-05 12:50:00 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2020-04-06 12:12:20 +0200 |
| commit | ad9ce332b75e54731b653e9b969330438cad0d0c (patch) | |
| tree | d7a80d5dc95fcd139a9aa0df7e074d314af7a0e9 /sources/pyside2/libpyside/dynamicqmetaobject.cpp | |
| parent | b9bf10b9cff9399ef575842f286e96dc24dac5c9 (diff) | |
pep384impl.cpp: Make the implementation more stateless
The pep384impl.h part is quite readable and stateless concerning the
state of Py_LIMITED_API.
The pep384impl.cpp part is stateful, which means there is no clear
separation between parts of the implementation.
This had led to unnecessary confusion in the past. To avoid that in
future, the #ifdef status of Py_LIMITED_API will no longer be carried
over multiple sections.
Also, checks which are for the limited API only are no longer executed
by default.
Further, PyDict_GetItem is replaced by PyDict_GetItemWithError, where
we do not expect a real error.
Change-Id: Ia51e551216c76f82b701ebc45c40e2d1412cabf5
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2/libpyside/dynamicqmetaobject.cpp')
0 files changed, 0 insertions, 0 deletions
