[Python-Dev] [Python-checkins] r43041 - python/trunk/Modules/_ctypes/cfield.c

"Martin v. Löwis" martin at v.loewis.de
Wed Mar 15 10:13:27 CET 2006

Tim Peters wrote:
>>Unfortunately, only so in Python 2.5. If the code is also
>>meant to be used for earlier versions, it won't work there
>>at all.
> Does that matter?

I believe it does: the ctypes maintainer wants to keep the
code identical across releases (AFAICT).

> has Py_ssize_t all over the place, and that's unique to 2.5 (so far) too, right?

Not necessarily. For example, Modules/_elementtree.c has

/* compatibility macros */
#if (PY_VERSION_HEX < 0x02050000)
typedef int Py_ssize_t;
#define lenfunc inquiry

I believe ctypes "wants" to take that approach also.


More information about the Python-Dev mailing list