[Pyrex] Initialisation of cdef global arrays with constants
[resend]
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Jan 29 21:58:26 CET 2005
sjmachin at lexicon.net wrote:
> Where I'm coming from is (my belief/understanding) that a "Python function" hand
> coded in C _should_ return NULL in this circumstance, so that the precise exception set
> by the called function can be thrown, instead of a guess.
Oh, I see what you mean. Yes, that's what you would do
if you were writing an extension module in C by hand.
But in Pyrex you just use a "raise" statement, and
Pyrex takes care of returning the NULL.
--
Greg
More information about the Pyrex
mailing list