[C++-sig] Howto expose exception classes using boost.python?
David Abrahams
dave at boost-consulting.com
Sun Apr 30 06:38:40 CEST 2006
"Roman Yakovenko" <roman.yakovenko at gmail.com> writes:
>> As far as I know, Python requires that the exceptions must be
>> delivered from PyExc_Exception, or a class which is delivered from
>> PyExc_Exception,
>
> Are you sure? Where did you read it?
Officially, it does require that exceptions be derived from
PyExc_Exception (I don't remember where that's documented), but
unofficially, you can throw anything :)
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list