[Pyrex] C++ exceptions

Lenard Lindstrom len-l at telus.net
Thu Apr 20 04:22:46 CEST 2006


On 19 Apr 2006 at 20:02, Steve Howe wrote:

> Hello all,
> 
> Just to make sure: currently there is no way in Pyrex of catching C++
> exceptions from a library and (re)raising them as Python exceptions ?
> 
> The library I want to wrap has error support only by using exceptions.
> 
> Thanks.
No. C++ wrapper code must be used. David McNab released a Pyrex 
precompiler that lets one embed C++ code in Pyrex. It is found at:

http://www.freenet.org.nz/python/pyrexembed


Lenard Lindstrom
<len-l at telus.net>





More information about the Pyrex mailing list