[pypy-svn] r72937 - pypy/branch/cpython-extension/pypy/module/cpyext

xoraxax at codespeak.net xoraxax at codespeak.net
Sat Mar 27 02:51:04 CET 2010


Author: xoraxax
Date: Sat Mar 27 02:51:03 2010
New Revision: 72937

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Oops, should have run tests (which were segfaulting :)).

Modified: pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py	Sat Mar 27 02:51:03 2010
@@ -294,6 +294,7 @@
     pto.c_tp_name = rffi.str2charp(w_type.getname(space, "?"))
     pto.c_tp_basicsize = -1 # hopefully this makes malloc bail out
     pto.c_tp_itemsize = 0
+    pto.c_tp_cache = lltype.nullptr(PyObject.TO)
     # uninitialized fields:
     # c_tp_print, c_tp_getattr, c_tp_setattr
     # XXX implement



More information about the Pypy-commit mailing list