Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.