summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-08 18:27:16 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-08 18:27:16 (GMT)
commit9bbac5065e09bc559581205a2b0da60b15803040 (patch)
tree72138b175ca19922eb91c0a993b15336b98e954f /Objects
parenta33eb06e3b29cc5df520bbb28261bd370f510932 (diff)
downloadcpython-9bbac5065e09bc559581205a2b0da60b15803040.zip
cpython-9bbac5065e09bc559581205a2b0da60b15803040.tar.gz
cpython-9bbac5065e09bc559581205a2b0da60b15803040.tar.bz2
Fixed a bug found by Marcin Kowalczyk
'Applying PyMethod_Type to 3 arguments crashes Python 3'
Diffstat (limited to 'Objects')
-rw-r--r--Objects/classobject.c2
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)) {