In ReverseWrapperBase, the check to ensure the return value is a tuple fails
Bug #1083957 reported by
Max Bélanger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
New
|
Undecided
|
Unassigned |
Bug Description
In pybindgen/
## parse the return value
## this ensures that py_retval is always a tuple
self.before_
However, when my Python function returns a tuple, this check seems to wrap the tuple into another tuple. The following call to 'PyArg_ParseTuple' fails because of this. Removing the call to 'Py_BuildValue' makes it work.
I've patched in the following check to do this only if it's not already a tuple: "if (!PyTuple_
Do you have a better solution to this?
To post a comment you must log in.