Mark Dickinson <dicki...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com