summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-03 20:23:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-03 20:23:33 (GMT)
commit94c30c012431c8495c73850a4438b0b7a3a2b9d4 (patch)
tree157fc37bc36598d00c56203e201e2e320a006e40 /Python
parent88af4dfa4b7bbb6a46fe393611e9225808ff4e11 (diff)
downloadcpython-94c30c012431c8495c73850a4438b0b7a3a2b9d4.zip
cpython-94c30c012431c8495c73850a4438b0b7a3a2b9d4.tar.gz
cpython-94c30c012431c8495c73850a4438b0b7a3a2b9d4.tar.bz2
SF #661437, apply() should get PendingDeprecation
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 54a9afd..466fab9 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) {