Timestamp objects ordering incorrect

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Comparing the order of Timestamp objects in Python surprisingly does not return the expected answer:

      >>> from bson import Timestamp
      >>> Timestamp(2, 1) > Timestamp(1, 1)
      False
      

      These objects represent points in time (for example in the oplog) and there is a strict order (first by .time then by .inc). We should at least support comparing Timestamp objects to each other.

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            Thomas Rueckstiess (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: