[C++-sig] Catching Boost.Python.ArgumentError

Austin Bingham austin.bingham at gmail.com
Mon Apr 26 10:22:41 CEST 2010


I feel like I'm missing something simple, but how do I catch
Boost.Python.ArgumentException? As far as I can tell, the Boost.Python
module is not something I can import explicitly, so I can't write
"catch Boost.Python.ArgumentException:". I can do something like
comparing type and module name strings, but that just feels inelegant
and a trouble for maintenance. Any ideas would be very welcome.

Austin


More information about the Cplusplus-sig mailing list