keyword arguments any more (previously they accepted them, but didn't
use them).
+- staticmethod() and classmethod() also now complain about keyword args
+ instead of silently ignoring them.
+
- Bug #1331062: Fix error in UTF-7 codec.
- Bug #1365916: Fix an int/long mismatch in the sorted() built-in.
if (!PyArg_UnpackTuple(args, "classmethod", 1, 1, &callable))
return -1;
+ if (!_PyArg_NoKeywords("classmethod", kwds))
+ return -1;
if (!PyCallable_Check(callable)) {
PyErr_Format(PyExc_TypeError, "'%s' object is not callable",
callable->ob_type->tp_name);
if (!PyArg_UnpackTuple(args, "staticmethod", 1, 1, &callable))
return -1;
+ if (!_PyArg_NoKeywords("staticmethod", kwds))
+ return -1;
Py_INCREF(callable);
sm->sm_callable = callable;
return 0;