[Checkins] SVN: zope.hookable/branches/regebro-python3/src/zope/hookable/_zope_hookable.c This definition of PyVarObject_HEAD_INIT is the one used in Python 2.6, and seems much more sane than the old one, that I got from 2to3c.

Lennart Regebro regebro at gmail.com
Wed Nov 24 11:58:55 EST 2010


Log message for revision 118567:
  This definition of PyVarObject_HEAD_INIT is the one used in Python 2.6, and seems much more sane than the old one, that I got from 2to3c.
  

Changed:
  U   zope.hookable/branches/regebro-python3/src/zope/hookable/_zope_hookable.c

-=-
Modified: zope.hookable/branches/regebro-python3/src/zope/hookable/_zope_hookable.c
===================================================================
--- zope.hookable/branches/regebro-python3/src/zope/hookable/_zope_hookable.c	2010-11-24 16:51:39 UTC (rev 118566)
+++ zope.hookable/branches/regebro-python3/src/zope/hookable/_zope_hookable.c	2010-11-24 16:58:54 UTC (rev 118567)
@@ -32,8 +32,8 @@
 #endif
 
 #ifndef PyVarObject_HEAD_INIT
-  #define PyVarObject_HEAD_INIT(type, size) _PyObject_EXTRA_INIT\
-          1, type, size,
+  #define PyVarObject_HEAD_INIT(type, size) \
+    PyObject_HEAD_INIT(type) size,
 #endif
 
 #if PY_MAJOR_VERSION >= 3



More information about the checkins mailing list