Message361126
Naively implementing this code, I'd use isinstance(numerator, int) over type(numerator) is int. Is that strict type check really needed?
I could not find anywhere whether numerator and denominator of numbers.Rational need to be numbers.Integral. I would expect so, however this is not written in the documentation of numbers.Rational. If that's the case, I think checking it for being numbers.Integral and failing hard if not is a reasonable thing to do. |
|
Date |
User |
Action |
Args |
2020-01-31 19:30:00 | hroncok | set | recipients:
+ hroncok, mark.dickinson, vstinner |
2020-01-31 19:30:00 | hroncok | set | messageid: <1580499000.84.0.77530880401.issue39350@roundup.psfhosted.org> |
2020-01-31 19:30:00 | hroncok | link | issue39350 messages |
2020-01-31 19:30:00 | hroncok | create | |
|