[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.229,2.230

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 23 Aug 2001 14:40:40 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv4734

Modified Files:
	bltinmodule.c 
Log Message:
Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.


Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.229
retrieving revision 2.230
diff -C2 -d -r2.229 -r2.230
*** bltinmodule.c	2001/08/17 23:04:59	2.229
--- bltinmodule.c	2001/08/23 21:40:38	2.230
***************
*** 1922,1925 ****
--- 1922,1928 ----
  				 (PyObject *) &PyFloat_Type) < 0)
  		return NULL;
+ 	if (PyDict_SetItemString(dict, "getset",
+ 				 (PyObject *) &PyGetSet_Type) < 0)
+ 		return NULL;
  	if (PyDict_SetItemString(dict, "int", (PyObject *) &PyInt_Type) < 0)
  		return NULL;