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 mark.dickinson, steven.daprano
Date 2016-09-06.17:59:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473184748.64.0.049805574679.issue27975@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2016-09-06 17:59:08mark.dickinsonsetrecipients: + mark.dickinson, steven.daprano
2016-09-06 17:59:08mark.dickinsonsetmessageid: <1473184748.64.0.049805574679.issue27975@psf.upfronthosting.co.za>
2016-09-06 17:59:08mark.dickinsonlinkissue27975 messages
2016-09-06 17:59:08mark.dickinsoncreate