[Python-checkins] python/dist/src/Objects funcobject.c,2.58,2.59 methodobject.c,2.45,2.46
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Tue, 18 Feb 2003 09:02:19 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv29654
Modified Files:
funcobject.c methodobject.c
Log Message:
Make __module__ settable on functions and methods.
Index: funcobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/funcobject.c,v
retrieving revision 2.58
retrieving revision 2.59
diff -C2 -d -r2.58 -r2.59
*** funcobject.c 31 Jan 2003 18:33:17 -0000 2.58
--- funcobject.c 18 Feb 2003 17:02:14 -0000 2.59
***************
*** 160,164 ****
{"func_name", T_OBJECT, OFF(func_name), READONLY},
{"__name__", T_OBJECT, OFF(func_name), READONLY},
! {"__module__", T_OBJECT, OFF(func_module), READONLY},
{NULL} /* Sentinel */
};
--- 160,164 ----
{"func_name", T_OBJECT, OFF(func_name), READONLY},
{"__name__", T_OBJECT, OFF(func_name), READONLY},
! {"__module__", T_OBJECT, OFF(func_module)},
{NULL} /* Sentinel */
};
Index: methodobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/methodobject.c,v
retrieving revision 2.45
retrieving revision 2.46
diff -C2 -d -r2.45 -r2.46
*** methodobject.c 31 Jan 2003 18:33:17 -0000 2.45
--- methodobject.c 18 Feb 2003 17:02:15 -0000 2.46
***************
*** 190,194 ****
static PyMemberDef meth_members[] = {
! {"__module__", T_OBJECT, OFF(m_module), READONLY},
{NULL}
};
--- 190,194 ----
static PyMemberDef meth_members[] = {
! {"__module__", T_OBJECT, OFF(m_module)},
{NULL}
};