[issue11673] RawArray does not accept long
Mark Dickinson
report at bugs.python.org
Fri Mar 25 22:59:19 CET 2011
Mark Dickinson <dickinsm at gmail.com> added the comment:
> The practical case I was thinking of was numpy integer scalar types
Hmm, true. But at least numpy.int instances pass an isinstance(..., int) check, right? But that still leaves numpy.int<anything other than 32> as a problem on 32-bit systems and Windows, and similarly for 64-bit systems.
> Ideally, there would be two functions, [...]
Also true; shame we can't fix this in 2.x.
I'll commit the isinstance(int, long) fix and your tests, since it's both safe and a clear improvement on the current behaviour.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11673>
_______________________________________
More information about the Python-bugs-list
mailing list