After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340162 - Missing ()
Missing ()
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: codegen
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-30 02:24 UTC by Yevgen Muntyan
Modified: 2008-07-16 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yevgen Muntyan 2006-04-30 02:24:37 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=(
Comment 1 Gustavo Carneiro 2006-04-30 12:07:45 UTC
Good catch! :P
Comment 2 Yevgen Muntyan 2006-04-30 18:17:02 UTC
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 :)