PyCFunction? What is it?

Courageous jkraska1 at san.rr.com
Mon May 29 23:39:55 EDT 2000


> If you have declared your C function with a prototype, the
> cast isn't necessary, because it will already have the
> right signature. The casts in the cStringIO module seem
> to be redundant -- maybe a hangover from some pre-ANSI
> version of the code.

I compile python modules in ANSI-C, but find myself needing
to in some cases do the PyCFunction thing in order to avoid
warnings. It doesn't seem to be strictly necessary, though.

The problem appears to be related to the type definition of
the first argument to the function, BTW...

C/



More information about the Python-list mailing list