Author: mattip <matti.pi...@gmail.com>
Branch: cpyext-ext
Changeset: r82361:3472ea77ece7
Date: 2016-02-21 10:12 +0100
http://bitbucket.org/pypy/pypy/changeset/3472ea77ece7/

Log:    fixes

diff --git a/pypy/module/cpyext/sequence.py b/pypy/module/cpyext/sequence.py
--- a/pypy/module/cpyext/sequence.py
+++ b/pypy/module/cpyext/sequence.py
@@ -4,7 +4,7 @@
 from pypy.objspace.std.listobject import ListStrategy
 from pypy.module.cpyext.api import (
     cpython_api, CANNOT_FAIL, CONST_STRING, Py_ssize_t, PyObject, PyObjectP)
-from pypy.module.cpyext.pyobject import PyObject
+from pypy.module.cpyext.pyobject import PyObject, make_ref, from_ref
 from rpython.rtyper.lltypesystem import rffi, lltype
 from pypy.objspace.std import listobject, tupleobject
 
diff --git a/pypy/module/cpyext/test/test_stringobject.py 
b/pypy/module/cpyext/test/test_stringobject.py
--- a/pypy/module/cpyext/test/test_stringobject.py
+++ b/pypy/module/cpyext/test/test_stringobject.py
@@ -30,7 +30,7 @@
                      result = 1;
                  }
                  #ifdef PYPY_VERSION
-                    size_t expected_size = sizeof(void*)*6;
+                    size_t expected_size = sizeof(void*)*7;
                  #else
                     size_t expected_size = 37;
                  #endif
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
@@ -154,8 +154,6 @@
     w_obj = space.allocate_instance(W_MemberDescr, w_type)
     w_obj.__init__(member, w_type)
     track_reference(space, obj, w_obj)
-    state = space.fromcache(RefcountState)
-    state.set_lifeline(w_obj, obj)
     return w_obj
 
 def getsetdescr_attach(space, py_obj, w_obj):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to