[C++-sig] Re: Hnadling Python exceptions in C++

David Abrahams dave at boost-consulting.com
Thu Jul 25 18:33:17 CEST 2002


----- Original Message -----

> but isn't "extern PyObject *PyExc_Exception" the address of an object
> with extenal linkage. Or is my idea totay dumb? Shall I give each
> derived class its own static pointer to the Python exception?
>
> Still learning C++

Nothing wrong with your idea. To clarify the error message, PyExc_Exception
is an object of type PyObject* with external linkage. The thing it points
to is a heap-allocated thing with no linkage.

HTH,
Dave






More information about the Cplusplus-sig mailing list