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

2014-01-10 Thread Charly Bicker
Dear Gary, I am not sure if this is what you want, but what about writing a wrapper function around EXTrender_effect which takes boost::python::objects and then use boost::python::extract to check if you can convert the objects you got to what they should be (cf. https://wiki.python.org/moin/boost

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

2014-01-10 Thread Gary Oberbrunner
[I posted this on StackOverflow yesterday, but got nothing. Hoping you will have some insight!] I'm writing a C++ python extension. I have a boost::python extension function static void EXTrender_effect(EffectGlobals_t *effect_handle, std::string preset, bp::o