On 5 Mar 2010, at 13:19, cxusmali.rhn@porcupinefactory.org wrote:

Hi,

The list seems not to have much traffic, but I hope someone will be able to help me. Here's my problem:

I tried to make a class to join Python2.6 and PyCXX 6.1.1, using Py:PythonClass. I managed to successfully create one basing on simple.cxx, with a vararg method in it. It would all be okay, but any exception thrown inside it causes Python to abort:

a.write()
terminate called after throwing an instance of 'Py::IndexError'
Aborted

I'm not proficient in C++ and I can't find the missing try-catch clause.
Throwing exceptions in initializer works, but I can't quite figure out either ;)

Thanks in advance!

This is bug that has been fixed on trunk. Checkout:

https://cxx.svn.sourceforge.net/svnroot/cxx/trunk/CXX

Barry