[C++-sig] Creating a python class from c++
James Healey
healeyjames at yahoo.co.uk
Thu Nov 16 12:44:51 CET 2006
Ok got the exception catch working and printing out
the error and stack trace.
ImportError: __import__ not found
Is the error that I am getting.
--- Stefan Seefeld <seefeld at sympatico.ca> wrote:
> James Healey wrote:
> > And it looks like this is the exception:
> >
> > exception: boost::python::error_already_set
>
>
http://boost.org/libs/python/doc/tutorial/doc/html/python/embedding.html#python.using_the_interpreter
>
> talks a bit about catching exceptions thrown by
> the python runtime. Look for the section on
> 'Exception handling'.
>
> (The python-exception handling, such as extracting
> the stack trace,
> could probably be wrapped into a C++ API, but AFAIK
> it currently isn't.)
>
>
> HTH,
> Stefan
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the Cplusplus-sig
mailing list