Matt Bogosian added the comment:

> I consider this as a bug and think that we should weak some of checks 
> isinstance(..., int) to isinstance(..., (int, long)). numbers.Integral is too 
> wide type, C implementation doesn't support it.

Oddly enough, the C implementation is what is working with `future` in this 
case (although I take your point regarding `numbers.Integral` being too wide; 
`future.types.newint` effectively behaves like a `long`, and 
`isinstance(future.types.newint(1), long)` returns `True`).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25714>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to