[pywin32-checkins] pywin32/com/win32com/src/include PythonCOM.h,1.10,1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-23 11:49:45
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/include In directory sc8-pr-cvs1:/tmp/cvs-serv32579/include Modified Files: PythonCOM.h Log Message: Move to the tp_getattro() slot, so we can use PyObject_GenericGetAttr(), so we can get some of the new type benefits, such as the automatic 'next' method on iterators. Start moving towards Python's new tp_base slot in favour of the hand-rolled one we built before Python saw the light :) Index: PythonCOM.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/include/PythonCOM.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PythonCOM.h 6 Oct 2003 13:09:44 -0000 1.10 --- PythonCOM.h 23 Oct 2003 07:34:37 -0000 1.11 *************** *** 178,185 **** static void dealloc(PyObject *ob); static PyObject *repr(PyObject *ob); ! static PyObject *getattr(PyObject *self, char *name); static int setattr(PyObject *op, char *name, PyObject *v); static int cmp(PyObject *ob1, PyObject *ob2); ! static PyObject *iter(PyObject *self); static PyObject *iternext(PyObject *self); }; --- 178,185 ---- static void dealloc(PyObject *ob); static PyObject *repr(PyObject *ob); ! static PyObject *getattro(PyObject *self, PyObject *name); static int setattr(PyObject *op, char *name, PyObject *v); static int cmp(PyObject *ob1, PyObject *ob2); ! static PyObject *iter(PyObject *self) {return PyObject_SelfIter(self);} static PyObject *iternext(PyObject *self); }; |