Fix a problem with callback proxies with zero or one parameters.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-07-09 18:33:16 +01:00
parent fd2cdaf7ac
commit a6ccafbed7
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ class CallbackImplProxyMethod(typehandlers.ReverseWrapperBase):
def generate_python_call(self):
"""code to call the python method"""
build_params = self.build_params.get_parameters()
build_params = self.build_params.get_parameters(force_tuple_creation=True)
if build_params[0][0] == '"':
build_params[0] = '(char *) ' + build_params[0]
args = self.before_call.declare_variable('PyObject*', 'args')

View File

@@ -21,7 +21,7 @@ else:
os.environ['PYTHONPATH'] = LOCAL_PYBINDGEN_PATH
## https://launchpad.net/pybindgen/
REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 475)
REQUIRED_PYBINDGEN_VERSION = (0, 8, 0, 479)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)