[Python-checkins] CVS: python/dist/src/Objects typeobject.c,2.16.8.66,2.16.8.67
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 13 Jul 2001 14:48:11 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv22282
Modified Files:
Tag: descr-branch
typeobject.c
Log Message:
Do not add a default __setattr__ implementation to the base object:
this would be inherited by types that have no settable attributes.
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.16.8.66
retrieving revision 2.16.8.67
diff -C2 -r2.16.8.66 -r2.16.8.67
*** typeobject.c 2001/07/11 00:57:09 2.16.8.66
--- typeobject.c 2001/07/13 21:48:09 2.16.8.67
***************
*** 874,878 ****
0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
! PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
--- 874,878 ----
0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
! 0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */