[Python-checkins] python/dist/src/Objects object.c,2.199,2.200
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Mon, 17 Mar 2003 00:22:59 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv29413/Objects
Modified Files:
object.c
Log Message:
Created PyObject_GenericGetIter().
Factors out the common case of returning self.
Index: object.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/object.c,v
retrieving revision 2.199
retrieving revision 2.200
diff -C2 -d -r2.199 -r2.200
*** object.c 19 Feb 2003 03:19:29 -0000 2.199
--- object.c 17 Mar 2003 08:22:56 -0000 2.200
***************
*** 1302,1305 ****
--- 1302,1312 ----
PyObject *
+ PyObject_GenericGetIter(PyObject *obj)
+ {
+ Py_INCREF(obj);
+ return obj;
+ }
+
+ PyObject *
PyObject_GenericGetAttr(PyObject *obj, PyObject *name)
{