diff options
author | Christian Tismer <tismer@stackless.com> | 2019-01-13 17:56:00 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2019-01-15 13:33:08 +0000 |
commit | b7707a51337cd7982d298041fa3db2ed225bfc54 (patch) | |
tree | d264067b87e9a466d275e73843921ef8f966045a /sources/shiboken2/libshiboken/pep384impl.h | |
parent | aef6a443a241756e9dfaff192b69d51eaa235ef6 (diff) |
Support help() using the Signature Module
The signature module will be used to generate automated
documentation by using the function signatures as docstrings.
This functionality should be low-hanging fruit. Actually, it was a
bit tricky to get this working. The crucial point was to use
PyType_Modified().
The function works fine on methods.
Supporting types needs some more effort.
It is not clear why the __signature__ attribute can be added,
but the change to __doc__ is not recognized. May be related to
the absence of Py_TPFLAGS_HAVE_VERSION_TAG ?
This will be addressed another time.
Task-number: PYSIDE-908
Change-Id: If8faa87927899f4c072d42b91eafd8f7658c6abc
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/libshiboken/pep384impl.h')
-rw-r--r-- | sources/shiboken2/libshiboken/pep384impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/libshiboken/pep384impl.h b/sources/shiboken2/libshiboken/pep384impl.h index bfa8f38a7..d883677ce 100644 --- a/sources/shiboken2/libshiboken/pep384impl.h +++ b/sources/shiboken2/libshiboken/pep384impl.h @@ -113,7 +113,7 @@ typedef struct _typeobject { void *X26; // iternextfunc tp_iternext; struct PyMethodDef *tp_methods; void *X28; // struct PyMemberDef *tp_members; - void *X29; // struct PyGetSetDef *tp_getset; + struct PyGetSetDef *tp_getset; struct _typeobject *tp_base; PyObject *tp_dict; descrgetfunc tp_descr_get; |