[tim.peters]
>> CField_repr(): PyString_FromFormat() understands the
>> C99 "z" qualifier on all platforms.
[Martin v. Löwis]
> 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 checked the patch in on the Python trunk, and
that's 2.5 to me ;-) The change was in:
static void
CField_repr(CFieldObject *self)
and:
typedef struct {
PyObject_HEAD
Py_ssize_t offset;
Py_ssize_t size;
Py_ssize_t index; /* Index into CDataObject's
object array */
PyObject *proto; /* a type or NULL */
GETFUNC getfunc; /* getter function if proto is NULL */
SETFUNC setfunc; /* setter function if proto is NULL */
} CFieldObject;
has Py_ssize_t all over the place, and that's unique to 2.5 (so far) too, right?
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com