GNOME Bugzilla – Bug 736287
overrides: Add comparison operators to Gtk.TextIter
Last modified: 2018-01-10 20:46:17 UTC
Comparing Gtk.TextIter instances defaults to pointer comparison of the held iter (PyGIBoxed defaults to this). We should override Gtk.TextIter to add all the standard comparisons. The following should really be True: >>> from gi.repository import Gtk >>> buf = Gtk.TextBuffer() >>> buf.get_start_iter() == buf.get_start_iter() False
Created attachment 285682 [details] [review] overrides: Add comparison operators to Gtk.TextIter Use functools.total_ordering to ensure we have a complete set of comparison operators for Gtk.TextIter.
-- 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/84.