Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime comparison #639

Open
djkirkham opened this issue Mar 13, 2017 · 1 comment
Open

datetime comparison #639

djkirkham opened this issue Mar 13, 2017 · 1 comment

Comments

@djkirkham
Copy link

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?

@jswhit
Copy link
Collaborator

jswhit commented Mar 28, 2017

netcdftime is being split out into a separate package. I created a copy of this issue at Unidata/cftime#11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants