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

2014-01-11 Thread Gary Oberbrunner
- Original Message - > From: "Karl Bicker" > To: "Development of Python/C++ integration" > Sent: Friday, January 10, 2014 8:36:48 AM > Subject: Re: [C++-sig] How to handle argument error exceptions in > boost.python? > > Dear Gary, > > I am not sure if this is what you want, but what

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

2014-01-11 Thread Karl 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/bo