[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:
parent
87695dacb1
commit
c864546b4a
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue