[C++-sig] Creating a python class from c++
seefeld at sympatico.ca
Wed Nov 15 19:33:55 CET 2006
James Healey wrote:
> PyFile_AsFile returns a ptr to a file object so that's
> working as it should.
> And how do i check the exception?
> Do i need to do any thing with the dict that gets
> passed into exec_file?
No. If the PyFile_AsFile call returns NULL you know
something is wrong, and an exception is set (i.e.
PyErr_Occured() returns a non-null pointer to the
However, all that should be dealt with by boost.python
already. Don't you see a C++ exception fly by ?
FWIW, you may want to look at the exec.cpp unit test
in a boost CVS snapshot. It should test all of the above.
...ich hab' noch einen Koffer in Berlin...
More information about the Cplusplus-sig