]> granicus.if.org Git - python/commit
Convert CFieldObject tp_members to tp_getset, since there is no
authorThomas Heller <theller@ctypes.org>
Tue, 6 Jun 2006 11:34:33 +0000 (11:34 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 6 Jun 2006 11:34:33 +0000 (11:34 +0000)
commitecc3e67b986a1eed404b528ccbc099049c149edb
treedbb45566cd40d8fc0fd30c79217f8867d82b4840
parentdd2a6bf14f5a0794c14780af72641177f216ee01
Convert CFieldObject tp_members to tp_getset, since there is no
structmember typecode for Py_ssize_t fields.  This should fix some of
the errors on the PPC64 debian machine (64-bit, big endian).

Assigning to readonly fields now raises AttributeError instead of
TypeError, so the testcase has to be changed as well.
Lib/ctypes/test/test_structures.py
Modules/_ctypes/cfield.c