Author: Antonio Cuni <[email protected]>
Branch: cpyext-avoid-roundtrip
Changeset: r92689:3f54b35142d4
Date: 2017-10-09 18:42 +0200
http://bitbucket.org/pypy/pypy/changeset/3f54b35142d4/
Log: (antocuni, arigo): we concluded that we cannot kill these: they are
needed e.g. by as_pyobj and int subclasses
diff --git a/pypy/module/cpyext/intobject.py b/pypy/module/cpyext/intobject.py
--- a/pypy/module/cpyext/intobject.py
+++ b/pypy/module/cpyext/intobject.py
@@ -39,7 +39,6 @@
else:
return BaseCpyTypedescr.allocate(typedescr, space, w_type, itemcount)
-# CCC kill this?
def int_attach(space, py_obj, w_obj, w_userdata=None):
"""
Fills a newly allocated PyIntObject with the given int object. The
@@ -48,7 +47,6 @@
py_int = rffi.cast(PyIntObject, py_obj)
py_int.c_ob_ival = space.int_w(w_obj)
-# CCC kill this?
def int_realize(space, obj):
intval = rffi.cast(lltype.Signed, rffi.cast(PyIntObject, obj).c_ob_ival)
w_type = from_ref(space, rffi.cast(PyObject, obj.c_ob_type))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit