From: <cxu...@po...> - 2010-03-05 13:35:34
|
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! Cheers, rhn |