aboutsummaryrefslogtreecommitdiffstats
path: root/testrunner.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2018-08-13 01:50:26 +0200
committerChristian Tismer <tismer@stackless.com>2018-08-21 13:50:37 +0000
commit28e82039e7b0c611f78d4b15dc7fb2ba232bb76c (patch)
tree365788a607ffa679645d20ee81c94b99269faec3 /testrunner.py
parent877c9be79d660fe1317a6fb46c585fb688abc21e (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 'testrunner.py')
0 files changed, 0 insertions, 0 deletions