Ken Simpson wrote:
>
>...
>
> 1. How do I raise Python exceptions from PyInline'd C code?
What if the wrapper code *always* checked for PyErr_Occurred(). If it is
set, it decref's the return value (if it isn't NULL) and then merely
re-raises the exception.
--
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook
|