Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 27652:ed91bf601b2d legacy-trunk
SF #661437, apply() should get PendingDeprecation
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 03 Feb 2003 20:23:33 +0000 |
| parents | 91a573243d5d |
| children | ce3faab06de7 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Mon Feb 03 20:22:27 2003 +0000 +++ b/Python/bltinmodule.c Mon Feb 03 20:23:33 2003 +0000 @@ -73,6 +73,9 @@ 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) {
