8000 ENH: Add object loops to isnan, isinf, and isfinite by eric-wieser · Pull Request #14802 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Add object loops to isnan, isinf, and isfinite #14802

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

Closed
wants to merge 2 commits into from

Conversation

eric-wieser
Copy link
Member

These just fall back on the corresponding function from the math module, which in practice coerces to float

These just fall back on the corresponding function from the `math` module, which in practice coerces to float
Fraction.__float__ gives a DeprecationWarning if the division results in a non-builtin float

This was never intended as part of the test anyway.
@eric-wieser
Copy link
Member Author

Failure is due to np.isnan(2**2048) now raising OverflowError instead of TypeError. Neither is really ideal, it should probably return False.

@mattip
Copy link
Member
mattip commented Oct 30, 2019

This adds 'O->O'. Do we want 'O->?' as well (see also code comment, link may be broken if resolved, in gh-14800)

@eric-wieser
Copy link
Member Author

Duplicates gh-10820, oops

@eric-wieser
Copy link
Member Author

Closing this one, it has more gaps than the one I link above

@mattip
Copy link
Member
mattip commented Nov 3, 2019

@eric-wieser did you mean to close this?

@eric-wieser eric-wieser closed this Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0