[Pyrex] Initialisation of cdef global arrays with constants [resend]

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jan 28 22:50:37 CET 2005


sjmachin at lexicon.net wrote:
> How to get access to Python string args in an easy 8-bit
 > clean fashion with no need to  call a length function --
 > just like PyArg_Parse... (...,"s#", ...).

Okay, I'll give this some thought.

> Note the "raise" where in C one would return NULL --
 > pyrex cracks it on return NULL, muttering about returning
 > a value from a void function.

You can't return NULL from a Python function, because
Python functions can only return Python values. Not
sure why it should say anything about void functions,
though -- that might be a bug.

--
Greg








More information about the Pyrex mailing list