This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Robert.Kern, jnoller, mark.dickinson
Date 2011-03-25.21:59:15
SpamBayes Score 2.0227231e-10
Marked as misclassified No
Message-id <1301090359.48.0.415234803588.issue11673@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2011-03-25 21:59:19mark.dickinsonsetrecipients: + mark.dickinson, jnoller, Robert.Kern
2011-03-25 21:59:19mark.dickinsonsetmessageid: <1301090359.48.0.415234803588.issue11673@psf.upfronthosting.co.za>
2011-03-25 21:59:15mark.dickinsonlinkissue11673 messages
2011-03-25 21:59:15mark.dickinsoncreate