Re: [C++-sig] export custom C++ exception to Python so it can be raisedby python

2012-11-06 Thread Martin Hellmich
Hi Giuseppe, On 11/06/2012 10:08 AM, Giuseppe Corbelli wrote: On 05/11/2012 18:51, Martin Hellmich wrote: Hi, I have a custom exception in C++ that I would like to use in Python. Let's call it MyException with custom constructor and members (an implementation is below). I would like to expose

Re: [C++-sig] export custom C++ exception to Python so it can be raisedby python

2012-11-06 Thread Giuseppe Corbelli
On 05/11/2012 18:51, Martin Hellmich wrote: Hi, I have a custom exception in C++ that I would like to use in Python. Let's call it MyException with custom constructor and members (an implementation is below). I would like to expose it to python so that I can raise it: > raise MyException(-1,