spacepaste

diff -r 03739fa3fc5c pypy/module/cpyext/pyobject.py
a/pypy/module/cpyext/pyobject.py [Tue Apr 03 06:06:40 2018 +0300]
b/pypy/module/cpyext/pyobject.py [Tue Apr 03 07:51:49 2018 +0200]
60 60
61 61 def _cpyext_attach_pyobj(self, space, py_obj):
62 62 self._cpy_ref = py_obj
63 rawrefcount.create_link_pyobj(self, py_obj)
63 rawrefcount.create_link_pypy(self, py_obj)
64 64 cls._cpyext_attach_pyobj = _cpyext_attach_pyobj
65 65
66 66 add_direct_pyobj_storage(W_BaseCPyObject)
diff -r 03739fa3fc5c pypy/module/cpyext/typeobject.py
a/pypy/module/cpyext/typeobject.py [Tue Apr 03 06:06:40 2018 +0300]
b/pypy/module/cpyext/typeobject.py [Tue Apr 03 07:51:49 2018 +0200]
517 517 self.w_doc = space.newtext(
518 518 rffi.charp2str(cts.cast('char*', pto.c_tp_doc)))
519 519
520 def _cpyext_attach_pyobj(self, space, py_obj):
521 self._cpy_ref = py_obj
522 rawrefcount.create_link_pyobj(self, py_obj)
523
520 524 @bootstrap_function
521 525 def init_typeobject(space):
522 526 make_typedescr(space.w_type.layout.typedef,