Re: translating C++ exceptions to python

2005-06-14 Thread harold fellermann
On 13.06.2005, at 13:23, [EMAIL PROTECTED] wrote: > Hi all, > > I have a C++ library I call from python. The problem is I have c++ > exceptions that i want to be translated to python. I want to be able to > do stuff like: > try: > my_cpp_function() > except cpp_exception_1: > do_stuff > e

Re: translating C++ exceptions to python

2005-06-14 Thread Denis S. Otkidach
On 13 Jun 2005 04:23:03 -0700 [EMAIL PROTECTED] wrote: > Hi all, > > I have a C++ library I call from python. The problem is I have c++ > exceptions that i want to be translated to python. I want to be able to > do stuff like: > try: > my_cpp_function() > except cpp_exception_1: > do_stuf

translating C++ exceptions to python

2005-06-13 Thread calin . hanchevici
Hi all, I have a C++ library I call from python. The problem is I have c++ exceptions that i want to be translated to python. I want to be able to do stuff like: try: my_cpp_function() except cpp_exception_1: do_stuff except cpp_exception_2: do_other_stuff any ideas how can i do the t