• Type: Technical task
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Fix Version/s: 5.12
    • Component/s: Shiboken
    • Labels:


      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
        # Subject Branch Project Status CR V



            • Assignee:
              ctismer Christian Tismer
              ctismer Christian Tismer
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Gerrit Reviews

                There is 1 open Gerrit change