Most primitive types are handled in XML, but this is not reflected
by the signatures, error messages, doc strings and hinting stubs.
In order to enhance the information shown to be more correct,
the C++ parser was completely rewritten for Python. It is closely
written to Python syntax, but keeps the existing information about
primitive types intact.
In the C implementation, pointer variables are turned into result
tuples that can hold multiple values. To create a correct Python
display of those variables, the signatures must be re-written,
accordingly. We apply the transformations automatically:
The former approach using heuristics did not work out. We now use a deterministic scheme where primitive pointer variables are marked with the XML attribute <array/>.
This sets a C++ flag NativePointerAsArrayPattern, which is propagated to Python as an array prefix for the type.
|For Gerrit Dashboard: PYSIDE-951|
|253625,35||Support Pointer Primitive Types by Arrays or Result Tuples||5.14||pyside/pyside-setup||Status: MERGED||+2||0|
|267799,12||Cleanup signature module before substantial change||5.12||pyside/pyside-setup||Status: MERGED||+2||0|
|268612,4||correct QtPrintSupport dependency||5.12||pyside/pyside-setup||Status: MERGED||+2||0|