[pypy-commit] pypy default: dummy implementation to make cython happier

mattip pypy.commits at gmail.com
Wed Aug 23 02:56:41 EDT 2017


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r92219:bd4073222df1
Date: 2017-08-23 09:55 +0300
http://bitbucket.org/pypy/pypy/changeset/bd4073222df1/

Log:	dummy implementation to make cython happier

diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/module/cpyext/object.py
@@ -94,6 +94,13 @@
     the fields used by the tp_traverse handler become invalid."""
     pass
 
+ at cpython_api([PyObject], rffi.INT_real, error=CANNOT_FAIL)
+def PyType_IS_GC(space, o):
+    """Return true if the type object includes support for the cycle detector; this
+    tests the type flag Py_TPFLAGS_HAVE_GC.
+    """
+    return False
+
 @cpython_api([PyObject], PyObjectP, error=CANNOT_FAIL)
 def _PyObject_GetDictPtr(space, op):
     return lltype.nullptr(PyObjectP.TO)


More information about the pypy-commit mailing list