diff Objects/codeobject.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 476cd83777f2
children 860e23a61e55
line wrap: on
line diff
--- a/Objects/codeobject.c	Thu Jul 19 23:57:38 2007 +0000
+++ b/Objects/codeobject.c	Sat Jul 21 06:55:02 2007 +0000
@@ -354,8 +354,7 @@
 /* XXX code objects need to participate in GC? */
 
 PyTypeObject PyCode_Type = {
-	PyObject_HEAD_INIT(&PyType_Type)
-	0,
+	PyVarObject_HEAD_INIT(&PyType_Type, 0)
 	"code",
 	sizeof(PyCodeObject),
 	0,