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 654048 - Unify method of Instantiating GObject-Introspected objects
Unify method of Instantiating GObject-Introspected objects
Status: RESOLVED DUPLICATE of bug 721226
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 708060
 
 
Reported: 2011-07-05 20:01 UTC by Dinh
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dinh 2011-07-05 20:01:37 UTC
Preface: Using Python + GObject Instrospection

There appears to be a discrepancy with how objects can be instantiated. It seems that Clutter.Xyz() should be equivalent to Clutter.Xyz.new(). But when instantiating with arguments such as:

colorBlack = Clutter.Color.new(0,0,0,255)

This is not equivalent to:

colorBlack = Clutter.Color(0,0,0,255)

Since the latter complains with:

Traceback (most recent call last):
  • File "<input>", line 1 in <module>
TypeError: function takes at most 0 arguments (4 given)

Comment 1 Emmanuele Bassi (:ebassi) 2011-07-06 09:43:32 UTC
re-assigning
Comment 2 Simon Feltman 2014-01-02 05:04:33 UTC

*** This bug has been marked as a duplicate of bug 721226 ***
Comment 3 André Klapper 2015-02-07 16:53:27 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]