[Pyrex] numeric C pointer argument and python integer argument

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 11 07:36:11 CEST 2008


Daniele Pianu wrote:
> when I parse
> a method in a C header, I need to know if a pointer argument points to a
> single integer or to a vector to wrap the method. I think it's impossible to
> do this in the script. Am I wrong?

You're not wrong. Without extra information, it's impossible
to know whether an argument declared as "foo *" is meant to
point to a single foo or an array of foos. And if an array,
how many foos there are in it.

-- 
Greg



More information about the Pyrex mailing list