Message228552
| 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.) |
|