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 belopolsky, gladman, mark.dickinson, pitrou, scoder, serhiy.storchaka, vstinner, wolma
Date 2014-10-05.09:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412501565.15.0.979390488925.issue22486@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.)
History
Date User Action Args
2014-10-05 09:32:45mark.dickinsonsetrecipients: + mark.dickinson, belopolsky, pitrou, scoder, vstinner, serhiy.storchaka, wolma, gladman
2014-10-05 09:32:45mark.dickinsonsetmessageid: <1412501565.15.0.979390488925.issue22486@psf.upfronthosting.co.za>
2014-10-05 09:32:45mark.dickinsonlinkissue22486 messages
2014-10-05 09:32:45mark.dickinsoncreate