diff Python/symtable.c @ 42333:6620a510e9a9 legacy-trunk

PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
author Martin v. Löwis <martin@v.loewis.de>
date Sat, 21 Jul 2007 06:55:02 +0000
parents 2c4026769945
children 393822f2ef90
line wrap: on
line diff
--- a/Python/symtable.c	Thu Jul 19 23:57:38 2007 +0000
+++ b/Python/symtable.c	Sat Jul 21 06:55:02 2007 +0000
@@ -117,8 +117,7 @@
 };
 
 PyTypeObject PySTEntry_Type = {
-	PyObject_HEAD_INIT(&PyType_Type)
-	0,
+	PyVarObject_HEAD_INIT(&PyType_Type, 0)
 	"symtable entry",
 	sizeof(PySTEntryObject),
 	0,