GNOME Bugzilla – Bug 340162
Missing ()
Last modified: 2008-07-16 10:12:48 UTC
Index: codegen/reversewrapper.py =================================================================== RCS file: /cvs/gnome/gnome-python/pygtk/codegen/reversewrapper.py,v retrieving revision 1.14 diff -u -b -r1.14 reversewrapper.py --- codegen/reversewrapper.py 3 Apr 2006 17:19:40 -0000 1.14 +++ codegen/reversewrapper.py 30 Apr 2006 02:22:26 -0000 @@ -294,7 +294,7 @@ if len(self.pyret_parse_items) == 1: ## if retval is one item only, pack it in a tuple so we ## can use PyArg_ParseTuple as usual.. - self.write_code('py_retval = Py_BuildValue("N", py_retval);') + self.write_code('py_retval = Py_BuildValue("(N)", py_retval);') if len(self.pyret_parse_items) > 0: ## Parse return values using PyArg_ParseTuple self.write_code(code=None, failure_expression=(
Good catch! :P
Good debugging! My widget started spitting out some "System error" about some new getargs on each keypress. Guess where I was looking for bug first :)