[Python-Dev] Documenting the ssize_t Python C API changes (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Tue Mar 21 18:51:03 CET 2006
- Previous message: [Python-Dev] Documenting the ssize_t Python C API changes
- Next message: [Python-Dev] Documenting the ssize_t Python C API changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
There are two improvements you could make: - Some of the functions in the first list return Pyssizet; calling them can cause truncation if the result value is larger than INTMAX (and it is assigned to an int). To find those functions, do grep 'PyAPIFUNC(Pyssizet)' Include/*.h
fixed (based on the list MAL just posted).
- 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 nbnonzero, tpclear, and tpisgc.
is there a complete list of these somewhere ?
- Previous message: [Python-Dev] Documenting the ssize_t Python C API changes
- Next message: [Python-Dev] Documenting the ssize_t Python C API changes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]