[Python-Dev] Documenting the ssize_t Python C API changes

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 21 20:09:25 CET 2006


Fredrik Lundh wrote:
>> - Usage of the "old" function pointer type name (e.g. intobjargproc)
>>    likely also indicates an error, since many of these pointers have
>>    changed there types. I believe the only exception for this is inquiry,
>>    which still has legit uses, in nb_nonzero, tp_clear, and tp_is_gc.
> 
> is there a complete list of these somewhere ?

This is actually in the PEP: the new types are
ssizeargfunc
ssizessizeargfunc
ssizeobjargproc
ssizessizeobjargproc
lenfunc
readbufferproc
writebufferproc
segcountproc
charbufferproc

These replace
intargfunc
intintargfunc
intobjargproc
intintobjargproc
inquiry (partial)
getreadbufferproc
getwritebufferproc
getsegcountproc
getcharbufferproc

Regards,
Martin


More information about the Python-Dev mailing list