
On 2015-01-28 00:17, Chris Barker wrote:
[...] Sure, here you go:
https://github.com/NOAA-ORR-ERD/PyGnome/blob/master/py_gnome/gnome/utilities...
Cool, the comparison operator logic looks very similar to mine: https://groups.google.com/d/msg/python-ideas/G3jeWoa6h14/ELpDLFu28QcJ I believe the ideal design is the following type hierarchy: datetime_base datetime_neg_inf datetime_pos_inf datetime But in the interests of pragmatism, I think this one can be made to work: datetime datetime_neg_inf datetime_pos_inf So we'd keep using the existing datetime type, and whenever we need infinity datetimes we'd just pass in the appropriate subtypes. The advantage to this is that we don't have to switch everything over to using a new derived type--just use the normal datetime for the majority of cases where we don't need inifinity dates. Regards, Yawar