[Python] Fix implicit_conv tuple handling regression

Introduced in SWIG 4.0.0.  Fixes #1553, reported by Alexandre
Duret-Lutz.
This commit is contained in:
Olly Betts 2019-06-03 10:13:58 +12:00
commit c864546b4a
2 changed files with 6 additions and 1 deletions

View file

@ -184,7 +184,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
}
/* A functor is a function object with one single object argument */
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, (char *)"O", obj);
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
/*
Helper for static pointer initialization for both C and C++ code, for example