Author: Matti Picus <[email protected]>
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
 
+@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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to