diff options
author | Georg Brandl <georg@python.org> | 2006-09-30 08:43:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-09-30 08:43:30 (GMT) |
commit | 5d59c0983431b0b7d3929dd2851b00e20e1d8c15 (patch) | |
tree | 0ee7023af580fab706ed5f0c7bfeb14f99af0230 /Objects/classobject.c | |
parent | 8c6674511b7fd0cafcdf00011eb91c3216be094f (diff) | |
download | cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.zip cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.gz cpython-5d59c0983431b0b7d3929dd2851b00e20e1d8c15.tar.bz2 |
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index e739cc6..7680a3d 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -2256,6 +2256,8 @@ instancemethod_new(PyTypeObject* type, PyObject* args, PyObject *kw) PyObject *self; PyObject *classObj = NULL; + if (!_PyArg_NoKeywords("instancemethod", kw)) + return NULL; if (!PyArg_UnpackTuple(args, "instancemethod", 2, 3, &func, &self, &classObj)) return NULL; |