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

Shiboken C++ => Python exceptions translation

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: In Progress
    • Priority: P5: Not important
    • Resolution: Unresolved
    • Affects Version/s: dev
    • Fix Version/s: dev
    • Component/s: Shiboken
    • Labels:

      Description

      Hi and thanks for the great PySide project.

      Currently Shiboken doesn't have a mechanism for handling C++ code that throws exceptions.
      So any exception raised in c++ causes segfault.

      Boost.Python has boost::python::register_exception_translator

      It would be great to have generated exception-safe bindings code so C++ exceptions are translated and raised as Python exceptions.
      It will really help us with the project where we're using PySide for C++ with embeded python.

      The idea was already discussed in group:
      http://groups.google.com/group/pyside/browse_thread/thread/600aed30a6664e59?pli=1
      (in new google groups: https://groups.google.com/forum/#!topic/pyside/YArtMKZmTlk)

      Best Regards.
      Dennis.

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-62
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                kleint Friedemann Kleint
                Reporter:
                dennis.v. Dennis Shilko
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: