[C++-sig] How to handle argument error exceptions in boost.python?

Gary Oberbrunner garyo at genarts.com
Tue Jan 14 12:45:07 CET 2014



----- Original Message -----
> From: "Giuseppe Corbelli" <giuseppe.corbelli at copanitalia.com>
...
> What is the exception you see from the python side? something like:
> 
> ArgumentError: Python argument types in
>      function_name(function_args)
> did not match C++ signature:
>      cpp_function_name(cpp_args)

That's exactly what I'm trying to figure out!  The c++ exception gets handled in handle_exception and it never gets turned into a python exception as far as I can tell.

-- 
Gary Oberbrunner


More information about the Cplusplus-sig mailing list