diff options
author | Christian Tismer <tismer@stackless.com> | 2018-08-13 01:50:26 +0200 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2018-08-21 13:50:37 +0000 |
commit | 28e82039e7b0c611f78d4b15dc7fb2ba232bb76c (patch) | |
tree | 365788a607ffa679645d20ee81c94b99269faec3 /sources/pyside2/tests/QtWidgets/CMakeLists.txt | |
parent | 877c9be79d660fe1317a6fb46c585fb688abc21e (diff) |
Implement Proper Name Mangling
When types have attributes starting with two underscores but
ending with at most one, Python uses name mangling to create
a unique private variable.
PySide needs to obey this rule in the tp_getattro methods.
We implemented it as an optimized _Pep_PrivateMangle function that
solves the problem internally without exposing the _Py_Mangle
function.
Remark: I think the exclusion of the _Py_Mangle function is another
oversight in the Limited API.
Task-number: PYSIDE-772
Change-Id: I0bfc2418dae439e963a16e37443f2099c6980696
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/CMakeLists.txt')
-rw-r--r-- | sources/pyside2/tests/QtWidgets/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtWidgets/CMakeLists.txt b/sources/pyside2/tests/QtWidgets/CMakeLists.txt index 4bc17ebee..36f1ba80a 100644 --- a/sources/pyside2/tests/QtWidgets/CMakeLists.txt +++ b/sources/pyside2/tests/QtWidgets/CMakeLists.txt @@ -79,6 +79,7 @@ PYSIDE_TEST(keep_reference_test.py) PYSIDE_TEST(missing_symbols_test.py) PYSIDE_TEST(paint_event_test.py) PYSIDE_TEST(parent_method_test.py) +PYSIDE_TEST(private_mangle_test.py) PYSIDE_TEST(python_properties_test.py) PYSIDE_TEST(qabstracttextdocumentlayout_test.py) PYSIDE_TEST(qaction_test.py) |