GNOME Bugzilla – Bug 707305
Support generic equal and hash operators
Last modified: 2018-01-10 20:28:01 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?
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.
-- 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.