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 170266 - nullary constructors accept bogus arguments without complaint
nullary constructors accept bogus arguments without complaint
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: codegen
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-14 04:14 UTC by Doug Quale
Modified: 2008-07-16 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Doug Quale 2005-03-14 04:14:44 UTC
Version details: pygtk-2.6.0

Constructors that don't take any arguments will accept arguments of any type and
number without complaint.  This is unpythonic, and it would be better to give
errors instead of simply ignoring them.

Examples:

>>> ec = gtk.EntryCompletion(1, 2, 3)
>>> cell = gtk.CellRendererText(1, 2, 3)
Comment 1 Johan (not receiving bugmail) Dahlin 2005-03-15 20:40:46 UTC
Fixed in CVS HEAD.
Thanks.