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
AttributeError
when taking sine of huge number
#13875
Comments
Fixed in #12700 to produce a better error message, now gives:
Passing a float as |
Maybe I'm missing something, but the "fixed" version still seems like a completely opaque error message. Someone runs |
Until we get rid of automatic coercion to an object array this is probably about as good as it will get. We could maybe make the error message spell out a bit more things, but we cannot just put in "input is too large" or so, at the point where the error message happens that would just be guessing. Although maybe you can suggest a wording which makes things easier. |
Can't the error catching logic check whether this is an int which is above a certain threshold, and then use the "int is too large" message? |
No, because The cause here is:
|
Error message:
Numpy/Python version information:
The text was updated successfully, but these errors were encountered: