-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: 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.