[C++-sig] Re: Wrapper for exception translation
Gottfried.Ganssauge at HAUFE.DE
Gottfried.Ganssauge at HAUFE.DE
Thu Jul 10 16:45:30 CEST 2003
...
>
> > Currently, in order to wrap user defined exceptions you need to
> >
> > - allocate a python exception using PyErr_NewException
>
> Well, no. I don't see any call to PyErr_NewException in
> libs/python/test/exception_translator.cpp
Right, you don't need to if you are content with RuntimeError exceptions.
My objective was another one: I wanted to create module exceptions that are
derived from the python "Exception" class.
>
> > This function needs to be parametrized using a specific naming
> > convention
>
> It's not clear to me what you're referring to. Are you sure you mean
> "naming convention"?
Yes.
More information about the Cplusplus-sig
mailing list