Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support-2
Changeset: r82231:29943ebc709d
Date: 2016-02-14 11:07 +0100
http://bitbucket.org/pypy/pypy/changeset/29943ebc709d/
Log: fix
diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py
--- a/pypy/module/cpyext/pyobject.py
+++ b/pypy/module/cpyext/pyobject.py
@@ -160,11 +160,11 @@
"""
#state = space.fromcache(RefcountState)
w_type = space.type(w_obj)
- if w_type.is_cpytype():
- ZZZ # py_obj = state.get_from_lifeline(w_obj)
- if py_obj:
- Py_IncRef(space, py_obj)
- return py_obj
+ #if w_type.is_cpytype():
+ # py_obj = state.get_from_lifeline(w_obj)
+ # if py_obj:
+ # Py_IncRef(space, py_obj)
+ # return py_obj
typedescr = get_typedescr(w_obj.typedef)
py_obj = typedescr.allocate(space, w_type, itemcount=itemcount)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit