[pypy-commit] pypy default: Add _Py_ForgetReference().

arigo noreply at buildbot.pypy.org
Tue Feb 28 13:42:05 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r52967:b741ab752493
Date: 2012-02-28 13:41 +0100
http://bitbucket.org/pypy/pypy/changeset/b741ab752493/

Log:	Add _Py_ForgetReference(). http://mail.python.org/pipermail/pypy-
	dev/2012-February/009482.html

diff --git a/pypy/module/cpyext/include/object.h b/pypy/module/cpyext/include/object.h
--- a/pypy/module/cpyext/include/object.h
+++ b/pypy/module/cpyext/include/object.h
@@ -56,6 +56,8 @@
 #define Py_TYPE(ob)		(((PyObject*)(ob))->ob_type)
 #define Py_SIZE(ob)		(((PyVarObject*)(ob))->ob_size)
 
+#define _Py_ForgetReference(ob) /* nothing */
+
 #define Py_None (&_Py_NoneStruct)
 
 /*


More information about the pypy-commit mailing list