Message274578
> It shouldn't be hard to do the equivalent of:
Right, that's not hard at all. But is it what we *want* to do? Why do you single out `int` for special treatment, but not `Fraction` or `Decimal`? How should the implementation handle Fraction objects, and why? How should the implementation handle a Fraction-like object implemented by a user? Why only objects of exact type `int`, but not instances of subclasses? Your suggestion replaces a straightforward mental model (math.isnan converts its input to float, then operates on it, just like almost all other math module functions) with something more complicated.
-1 from me. |
|
Date |
User |
Action |
Args |
2016-09-06 17:59:08 | mark.dickinson | set | recipients:
+ mark.dickinson, steven.daprano |
2016-09-06 17:59:08 | mark.dickinson | set | messageid: <1473184748.64.0.049805574679.issue27975@psf.upfronthosting.co.za> |
2016-09-06 17:59:08 | mark.dickinson | link | issue27975 messages |
2016-09-06 17:59:08 | mark.dickinson | create | |
|