From a6ccafbed75fc57714793fbfc634042e90417912 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Wed, 9 Jul 2008 18:33:16 +0100 Subject: [PATCH] Fix a problem with callback proxies with zero or one parameters. --- bindings/python/ns3modulegen_core_customizations.py | 2 +- bindings/python/wscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/ns3modulegen_core_customizations.py b/bindings/python/ns3modulegen_core_customizations.py index 2a23e48b8..95721c5f4 100644 --- a/bindings/python/ns3modulegen_core_customizations.py +++ b/bindings/python/ns3modulegen_core_customizations.py @@ -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') diff --git a/bindings/python/wscript b/bindings/python/wscript index 3d600b1b8..d13ebeeba 100644 --- a/bindings/python/wscript +++ b/bindings/python/wscript @@ -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)