diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-07-21 06:55:02 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-07-21 06:55:02 +0000 |
commit | 778038e965a1ff5bcc5585431cb193bd89eb9005 (patch) | |
tree | a25dda76813c1223f6a2d246f3fa63c9ff66dd4b /Modules/xxsubtype.c | |
parent | 5a122db52c24ed01ad2fba7efeed10048cbcc9fe (diff) | |
download | cpython-778038e965a1ff5bcc5585431cb193bd89eb9005.tar.gz |
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
Diffstat (limited to 'Modules/xxsubtype.c')
-rw-r--r-- | Modules/xxsubtype.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c index 88ce6c5bba..0cf0b81e34 100644 --- a/Modules/xxsubtype.c +++ b/Modules/xxsubtype.c @@ -101,8 +101,7 @@ static PyGetSetDef spamlist_getsets[] = { }; static PyTypeObject spamlist_type = { - PyObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type)) - 0, + PyVarObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type), 0) "xxsubtype.spamlist", sizeof(spamlistobject), 0, @@ -193,8 +192,7 @@ static PyMemberDef spamdict_members[] = { }; static PyTypeObject spamdict_type = { - PyObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type)) - 0, + PyVarObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type), 0) "xxsubtype.spamdict", sizeof(spamdictobject), 0, |