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

Shiboken C++ => Python exceptions translation

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P5: Not important
    • 5.14
    • None
    • Shiboken

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: