[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.230,2.231
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 24 Aug 2001 09:52:20 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv22643
Modified Files:
bltinmodule.c
Log Message:
Add 'super' builtin type.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.230
retrieving revision 2.231
diff -C2 -d -r2.230 -r2.231
*** bltinmodule.c 2001/08/23 21:40:38 2.230
--- bltinmodule.c 2001/08/24 16:52:18 2.231
***************
*** 1939,1942 ****
--- 1939,1945 ----
if (PyDict_SetItemString(dict, "str", (PyObject *) &PyString_Type) < 0)
return NULL;
+ if (PyDict_SetItemString(dict, "super",
+ (PyObject *) &PySuper_Type) < 0)
+ return NULL;
if (PyDict_SetItemString(dict, "tuple",
(PyObject *) &PyTuple_Type) < 0)