Commit 9bbac506 authored by Christian Heimes's avatar Christian Heimes

Fixed a bug found by Marcin Kowalczyk

'Applying PyMethod_Type to 3 arguments crashes Python 3'
parent a33eb06e
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment