diff options
author | Guido van Rossum <guido@python.org> | 2003-04-09 19:35:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-04-09 19:35:08 (GMT) |
commit | 2fb9fdc96a59984539d49cb45d4f87fe9490a0e1 (patch) | |
tree | 8307ea41cd5e3a610ee2bcc4b2db7858a7bb45fd /Objects/classobject.c | |
parent | a7132189d20f2c910810d1da97283157dddb9104 (diff) | |
download | cpython-2fb9fdc96a59984539d49cb45d4f87fe9490a0e1.zip cpython-2fb9fdc96a59984539d49cb45d4f87fe9490a0e1.tar.gz cpython-2fb9fdc96a59984539d49cb45d4f87fe9490a0e1.tar.bz2 |
Make it possible to call instancemethod() with 2 arguments.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 89a3673..9375e07 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -2197,9 +2197,9 @@ instancemethod_new(PyTypeObject* type, PyObject* args, PyObject *kw) { PyObject *func; PyObject *self; - PyObject *classObj; + PyObject *classObj = NULL; - if (!PyArg_UnpackTuple(args, "instancemethod", 3, 3, + if (!PyArg_UnpackTuple(args, "instancemethod", 2, 3, &func, &self, &classObj)) return NULL; if (!PyCallable_Check(func)) { |