-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
numpy.int64 is not instance of int #2951
Comments
This is correct -- python 'int' is either 32 or 64 bit (depending on your (Really even this is silly because numpy ints aren't instances of 'int' isinstance(..., int) is the wrong tool for what you're trying to do. If you On Sat, Jan 26, 2013 at 8:15 PM, Daniel Vianna [email protected]:
|
Also, on Python 3, none of Numpy's integer types is related to the native int type (which is an variable-size integer). |
I think Nathaniel is completely correct in his note on the original report. Numpy should inherit/register |
As of #4547 and 1.9.0, numpy registers numbers with the number module. Closing this as related. |
This bug occurs because numpy does not take numpy.int64 to be an instance of int. For more details refer - numpy/numpy#2951
This bug occurs because numpy does not take numpy.int64 to be an instance of int. For more details refer - numpy/numpy#2951
As reported in xlwt:
Here is an examination of numpy behaviour (Python 2.7.3, numpy 1.6.2)
Looks like numpy has done the work to make its int32 and float64 recognisable by other software but not int64.
The text was updated successfully, but these errors were encountered: