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
- relates to
-
PYSIDE-218 segfault when including boost share_ptr header (proposed workaround / patch)
- Closed
-
PYSIDE-97 Shiboken parsing boost headers fails
- Closed
For Gerrit Dashboard: PYSIDE-62 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
234961,4 | shiboken: Add exception specification to clang parser | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
234966,4 | shiboken: Remove -fno-exceptions from Clang parse options | 5.11 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
239571,3 | shiboken: Store null enum values | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
239572,2 | shiboken: Introduce DefaultValue | dev | pyside/pyside-setup | Status: MERGED | -1 | 0 |
239703,4 | shiboken: Refactor Generator::minimalConstructor(AbstractMetaClass) | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
239760,2 | shiboken: Add default constructible with default values | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
240034,4 | shiboken: Extend exception specification | dev | pyside/pyside-setup | Status: MERGED | -2 | 0 |
240035,9 | Add exception handling | dev | pyside/pyside-setup | Status: MERGED | -2 | 0 |
254427,2 | shiboken: Extend the exception handling test | 5.12 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
254428,6 | shiboken: Fix exception handling when specified in base class | 5.12 | pyside/pyside-setup | Status: MERGED | -2 | 0 |
254524,1 | shiboken: Introduce a class context struct to AbstractMetaBuilderPrivate | 5.12 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |