diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/classobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 5362fbc..5500ed5 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -141,7 +141,7 @@ method_new(PyTypeObject* type, PyObject* args, PyObject *kw) if (!_PyArg_NoKeywords("instancemethod", kw)) return NULL; - if (!PyArg_UnpackTuple(args, "method", 2, 3, + if (!PyArg_UnpackTuple(args, "method", 2, 2, &func, &self)) return NULL; if (!PyCallable_Check(func)) { |