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 707305 - Support generic equal and hash operators
Support generic equal and hash operators
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other All
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on: 569620
Blocks:
 
 
Reported: 2013-09-02 19:27 UTC by Leonardo
Modified: 2018-01-10 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leonardo 2013-09-02 19:27:51 UTC
Comparing two GFiles with foo == bar is not the same as comparing them using foo.Equal(bar).

Perhaps the equality operator should be aliased to the equal method?
Comment 1 Simon Feltman 2013-09-12 02:44:31 UTC
There are already a number of Python overrides for things like this but we should focus on generic support for equality instead of cherry picking certain cases as needed (and adding more to our overrides). I've added bug 569620 as a dependency for boxed types. However, Gio.File is an interface so perhaps we also need an additional annotation hint for GObject types which specify a generic equality function.

This will also allow us to remove all of the current __eq__ overrides.
Comment 2 GNOME Infrastructure Team 2018-01-10 20:28:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/53.