Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 39921:49fbddfb1217 legacy-trunk
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 30 Sep 2006 08:43:30 +0000 |
| parents | 48f1dbc57845 |
| children | 6ba402b60041 |
line wrap: on
line diff
--- a/Objects/typeobject.c Sat Sep 30 07:31:57 2006 +0000 +++ b/Objects/typeobject.c Sat Sep 30 08:43:30 2006 +0000 @@ -5762,6 +5762,8 @@ PyObject *obj = NULL; PyTypeObject *obj_type = NULL; + if (!_PyArg_NoKeywords("super", kwds)) + return -1; if (!PyArg_ParseTuple(args, "O!|O:super", &PyType_Type, &type, &obj)) return -1; if (obj == Py_None)
