[Python-checkins] python/dist/src/Python bltinmodule.c,2.271,2.272

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Mon, 03 Feb 2003 12:23:37 -0800


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

Modified Files:
	bltinmodule.c 
Log Message:
SF #661437, apply() should get PendingDeprecation

Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.271
retrieving revision 2.272
diff -C2 -d -r2.271 -r2.272
*** bltinmodule.c	25 Jan 2003 22:46:11 -0000	2.271
--- bltinmodule.c	3 Feb 2003 20:23:33 -0000	2.272
***************
*** 74,77 ****
--- 74,80 ----
  	PyObject *t = NULL, *retval = NULL;
  
+ 	PyErr_Warn(PyExc_PendingDeprecationWarning,
+ 		   "use func(*args, **kwargs) instead of "
+ 		   "apply(func, args, kwargs)");
  	if (!PyArg_UnpackTuple(args, "apply", 1, 3, &func, &alist, &kwdict))
  		return NULL;