From: Neal Norwitz Date: Mon, 3 Feb 2003 20:23:33 +0000 (+0000) Subject: SF #661437, apply() should get PendingDeprecation X-Git-Tag: v2.3c1~2069 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94c30c012431c8495c73850a4438b0b7a3a2b9d4;p=thirdparty%2FPython%2Fcpython.git SF #661437, apply() should get PendingDeprecation --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 54a9afd2e8b7..466fab9a3c26 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -73,6 +73,9 @@ builtin_apply(PyObject *self, PyObject *args) PyObject *func, *alist = NULL, *kwdict = NULL; 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; if (alist != NULL) {