aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2018-08-27 19:58:48 +0200
committerChristian Tismer <tismer@stackless.com>2018-08-28 06:50:28 +0000
commitef2c47069c545f5afdf767c70add543bac4c77e6 (patch)
tree54b45f38f0690d910709a888f72234053f424cbe /sources/pyside2/tests
parenta697423e4b5b37572a8a06a8904fc03b44d99f39 (diff)
Fix help display of backport_inspect (python 2.7)
Python 2.7 has no signatures in its inspect module. We therefore add the missing stuff for the signature package using 'backport_inspect.py'. The resulting module is a bit unusual because it is assembled from different modules at runtime. When trying the code >>> from PySide2.support.signature import inspect >>> help(inspect) in Python2, we got only very little information because of some heuristics in the pydoc module that checks the module identity and finds only objects from the new one. It turned out that this heuristics can be circumvented when the "__all__" property is provided. pydoc then believes everything. We now have complete help info if the above module is used. The original inspect module is not changed at all. Change-Id: I3f24ada3b9ae9c79ec69a6280ddf3ea78735467b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/tests')
0 files changed, 0 insertions, 0 deletions