netcdf4-python icon indicating copy to clipboard operation
netcdf4-python copied to clipboard

datetime comparison

Open djkirkham opened this issue 8 years ago • 1 comments

When a netcdftime datetime object is unable to be compared to another object, the __richcmp__ method raises a TypeError. In previous versions of the module the method would return NotImplemented, causing the appropriate method on the other object to be called and allowing classes to be written which could be compared against netcdftime datetime objects. With the TypeError behaviour this is no longer the case.

Can the previous behaviour be restored?

djkirkham avatar Mar 13 '17 13:03 djkirkham

netcdftime is being split out into a separate package. I created a copy of this issue at https://github.com/Unidata/netcdftime/issues/11.

jswhit avatar Mar 28 '17 17:03 jswhit