[Python-checkins] CVS: python/dist/src/Objects floatobject.c,2.95,2.96

Tim Peters tim_one@users.sourceforge.net
Wed, 05 Sep 2001 16:49:26 -0700


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

Modified Files:
	floatobject.c 
Log Message:
Better error msg for 3-arg pow with a float argument.


Index: floatobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/floatobject.c,v
retrieving revision 2.95
retrieving revision 2.96
diff -C2 -d -r2.95 -r2.96
*** floatobject.c	2001/09/05 22:36:56	2.95
--- floatobject.c	2001/09/05 23:49:24	2.96
***************
*** 482,486 ****
  	if ((PyObject *)z != Py_None) {
  		PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
! 			"allowed unless all other arguments are integers");
  		return NULL;
  	}
--- 482,486 ----
  	if ((PyObject *)z != Py_None) {
  		PyErr_SetString(PyExc_TypeError, "pow() 3rd argument not "
! 			"allowed unless all arguments are integers");
  		return NULL;
  	}