[Pyrex] Is there any problem with having "except *" as the default behavior for cdef funcs?
Robert Bradshaw
robertwb at math.washington.edu
Wed Sep 12 18:52:58 CEST 2007
The beauty of the except clause is that PyErr_Occurred is not called,
instead just does a check to see if the returned value matches the
except value, which is much faster. I think, however, if the except
value matches PyErr_Occurred should still probably be called to
verify it is an error rather than a valid value. (Put that on the
todo list...)
- Robert
On Sep 12, 2007, at 5:37 AM, Dan Gindikin wrote:
> Hi,
>
> Are there any issues with all cdef funcs having an "except *" clause?
> (other than the performance hit of PyErr_Occurred() for every call)
>
> --
> Dan
>
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex
More information about the Pyrex
mailing list