Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88af4df commit 94c30c0Copy full SHA for 94c30c0
1 file changed
Python/bltinmodule.c
@@ -73,6 +73,9 @@ builtin_apply(PyObject *self, PyObject *args)
73
PyObject *func, *alist = NULL, *kwdict = NULL;
74
PyObject *t = NULL, *retval = NULL;
75
76
+ PyErr_Warn(PyExc_PendingDeprecationWarning,
77
+ "use func(*args, **kwargs) instead of "
78
+ "apply(func, args, kwargs)");
79
if (!PyArg_UnpackTuple(args, "apply", 1, 3, &func, &alist, &kwdict))
80
return NULL;
81
if (alist != NULL) {
0 commit comments