Message132164
> 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. |
|
Date |
User |
Action |
Args |
2011-03-25 21:59:19 | mark.dickinson | set | recipients:
+ mark.dickinson, jnoller, Robert.Kern |
2011-03-25 21:59:19 | mark.dickinson | set | messageid: <1301090359.48.0.415234803588.issue11673@psf.upfronthosting.co.za> |
2011-03-25 21:59:15 | mark.dickinson | link | issue11673 messages |
2011-03-25 21:59:15 | mark.dickinson | create | |
|