Author: Matti Picus <matti.pi...@gmail.com> Branch: call-via-pyobj Changeset: r85494:1b1bf8ef2fb6 Date: 2016-07-01 18:21 +0300 http://bitbucket.org/pypy/pypy/changeset/1b1bf8ef2fb6/
Log: fix for translation diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py --- a/pypy/module/cpyext/typeobject.py +++ b/pypy/module/cpyext/typeobject.py @@ -304,6 +304,7 @@ struct = getattr(pto, slot_names[0]) if not struct: continue + assert isinstance(struct, lltype._ptr) offset.append(rffi.offsetof(struct._T, slot_names[1])) func = getattr(struct, slot_names[1]) func_voidp = rffi.cast(rffi.VOIDP, func) @@ -818,7 +819,6 @@ base_pyo = rffi.cast(PyObject, pto.c_tp_base) if base and not base.c_tp_flags & Py_TPFLAGS_READY: name = rffi.charp2str(base.c_tp_name) - print 'realizing base while creating child', type_realize(space, base_pyo) if base and not pto.c_ob_type: # will be filled later pto.c_ob_type = base.c_ob_type _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit