Mark Dickinson added the comment:

> I mean, there is already such a type check in Fraction.__init__()

That type-check doesn't protect us from non-int Integrals, though, as far as I 
can tell.  It looks to me as though doing `Fraction(numpy.int32(3), 
numpy.int32(2))` would fail with a TypeError after this patch.  (It works in 
Python 3.4.)

----------

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

Reply via email to