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 736287 - overrides: Add comparison operators to Gtk.TextIter
overrides: Add comparison operators to Gtk.TextIter
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-08 20:55 UTC by Simon Feltman
Modified: 2018-01-10 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
overrides: Add comparison operators to Gtk.TextIter (2.45 KB, patch)
2014-09-08 20:56 UTC, Simon Feltman
none Details | Review

Description Simon Feltman 2014-09-08 20:55:30 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
Comment 1 Simon Feltman 2014-09-08 20:56:45 UTC
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.
Comment 2 GNOME Infrastructure Team 2018-01-10 20:46:17 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/84.