Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1605

shiboken should allow to pass containers to python without copying

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      None
    • Platform/s:
      All

      Description

      this is a bug / feature-request

      current implementation of containers requires copying of eg. vector each time it is accessed in python.

      shiboken should implement a way to expose eg. vectors(by pointer / ref)  that expose python's list defs(methods)

      that vector would behave 'almost' same as pythons native list but wouldnt need to be copied.

      pybind11 allows that :  https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html#making-opaque-types

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              meomic Michal M
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: