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 John.Yeung, facundobatista, mark.dickinson, rhettinger, serhiy.storchaka, terry.reedy
Date 2018-03-19.08:39:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Raymond: what are your thoughts on deprecating the ability of `math.factorial` to accept a float (as in `math.factorial(5.0)` -> `120`)?

For me, I'm not sure I see the value of the deprecation. It's the usual story: the answer to "Knowing what we know now, should we have done this differently in the first place" is "Probably, yes". But "Should we change the current behaviour" is a very different question. I'm tempted to see the acceptance of integral floats as a harmless quirk, and the deprecation of that behaviour as a case of gratuitous breakage.
History
Date User Action Args
2018-03-19 08:39:04mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, facundobatista, serhiy.storchaka, John.Yeung
2018-03-19 08:39:04mark.dickinsonsetmessageid: <[email protected]>
2018-03-19 08:39:04mark.dickinsonlinkissue33083 messages
2018-03-19 08:39:03mark.dickinsoncreate