mirror of
https://github.com/python/cpython.git
synced 2024-11-26 19:34:19 +08:00
SF #661437, apply() should get PendingDeprecation
This commit is contained in:
parent
88af4dfa4b
commit
94c30c0124
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user