[pypy-svn] r72762 - pypy/branch/cpython-extension/pypy/module/cpyext
xoraxax at codespeak.net
xoraxax at codespeak.net
Wed Mar 24 22:17:25 CET 2010
Author: xoraxax
Date: Wed Mar 24 22:17:23 2010
New Revision: 72762
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/typeobject.py
Log:
Also in the last commit (pressed Return to early): Added correct dealloc functions for our type objects. In this commit: Removed prints.
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 Wed Mar 24 22:17:23 2010
@@ -215,7 +215,6 @@
w_type = space.type(self)
assert isinstance(w_type, W_PyCTypeObject)
pto = w_type.pto
- print "Called W_PyCObject.__del__"
generic_cpy_call(space, pto.c_tp_dealloc, self)
@@ -234,7 +233,6 @@
@cpython_api([PyObject], lltype.Void, external=False)
def type_dealloc(space, obj):
- print "type_dealloc of", obj
obj_pto = rffi.cast(PyTypeObjectPtr, obj)
type_pto = rffi.cast(PyTypeObjectPtr, obj.c_obj_type)
# type_dealloc code follows:
@@ -259,9 +257,8 @@
callable = PyObject_dealloc
pto.c_tp_dealloc = llhelper(callable.api_func.functype,
make_wrapper(space, callable))
- print "Chose dealloc strategy %r for %r" % (callable.func, w_type)
- callable = PyObject_Del
pto.c_tp_flags = Py_TPFLAGS_HEAPTYPE
+ callable = PyObject_Del
pto.c_tp_free = llhelper(callable.api_func.functype,
make_wrapper(space, callable))
pto.c_tp_name = rffi.str2charp(w_type.getname(space, "?"))
More information about the Pypy-commit
mailing list