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

"greater than" comparison method of doesn't perform as expected on Micro objects #2078

Closed
cpcloud opened this issue Oct 16, 2012 · 0 comments

Comments

@cpcloud
Copy link
Member

commented Oct 16, 2012

Using IPython:

In [1]: import pandas

In [2]: Micro = pandas.datetools.Micro

In [3]: 3 * Micro() > 2 * Micro()
Out[3]: False

In [4]: 2 * Micro() > 3 * Micro()
Out[4]: False

They can't both be False. Giving the arguments to > to cmp works as expected. Not sure where the issue lies since neither Micro nor any of its superclasses implements any of the comparison methods except __eq__ and __ne__.

@wesm wesm closed this in b568c74 Nov 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.