Index: Objects/typeobject.c =================================================================== --- Objects/typeobject.c (revision 84317) +++ Objects/typeobject.c (working copy) @@ -188,8 +188,8 @@ static PyMemberDef type_members[] = { - {"__basicsize__", T_INT, offsetof(PyTypeObject,tp_basicsize),READONLY}, - {"__itemsize__", T_INT, offsetof(PyTypeObject, tp_itemsize), READONLY}, + {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY}, + {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY}, {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY}, {"__weakrefoffset__", T_LONG, offsetof(PyTypeObject, tp_weaklistoffset), READONLY}, Index: Lib/test/test_types.py =================================================================== --- Lib/test/test_types.py (revision 84317) +++ Lib/test/test_types.py (working copy) @@ -243,6 +243,10 @@ self.assertRaises(TypeError, type, 1, 2) self.assertRaises(TypeError, type, 1, 2, 3, 4) + def test_type_members(self): + self.assertGreater(object.__basicsize__, 0) + self.assertGreater(str.__itemsize__, 0) + def test_buffers(self): self.assertRaises(ValueError, buffer, 'asdf', -1) cmp(buffer("abc"), buffer("def")) # used to raise a warning: tp_compare didn't return -1, 0, or 1