|
From: Tim D. <ti...@ma...> - 2007-10-18 03:40:16
|
I've just been taking a look at pyCxx, and it's looks quite nice.
=20
I notice that in Objects.hxx, there's lot's of code snippets that look
like:
=20
if (PyErr_Occurred()) throw Exception();
=20
Would it be better to call a function that interrogates the exeception
status, and throws an exception of the appropriate derived type? That
way you could catch more specifically in the C++ code.
=20
Also, is there a reason why Exception doesn't derive from
std::exception?
=20
thanks,
=20
Tim
|