Fix a problem with callback proxies with zero or one parameters.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 09 Jul 2008 18:33:16 +0100
changeset 3412 518719e905a0
parent 3411 eca46ea15a04
child 3413 1d46345ab5d7
Fix a problem with callback proxies with zero or one parameters.
bindings/python/ns3modulegen_core_customizations.py
bindings/python/wscript
--- a/bindings/python/ns3modulegen_core_customizations.py	Wed Jul 09 17:31:37 2008 +0100
+++ b/bindings/python/ns3modulegen_core_customizations.py	Wed Jul 09 18:33:16 2008 +0100
@@ -145,7 +145,7 @@
 
     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')
--- a/bindings/python/wscript	Wed Jul 09 17:31:37 2008 +0100
+++ b/bindings/python/wscript	Wed Jul 09 18:33:16 2008 +0100
@@ -21,7 +21,7 @@
     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)