Message228552
> 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.) |
|
Date |
User |
Action |
Args |
2014-10-05 09:32:45 | mark.dickinson | set | recipients:
+ mark.dickinson, belopolsky, pitrou, scoder, vstinner, serhiy.storchaka, wolma, gladman |
2014-10-05 09:32:45 | mark.dickinson | set | messageid: <1412501565.15.0.979390488925.issue22486@psf.upfronthosting.co.za> |
2014-10-05 09:32:45 | mark.dickinson | link | issue22486 messages |
2014-10-05 09:32:45 | mark.dickinson | create | |
|