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, docs@python, facundobatista, mark.dickinson, rhettinger, skrah, terry.reedy
Date 2015-11-28.14:29:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

>>> factorial(decimal.Decimal(5.2))

Yep, that's definitely wrong. If we want to behave the same way as for float, we should accept only integral Decimal values. (Though I'm not much of a fan of the float behaviour: I would have preferred math.factorial not to accept floats at all.)
Date User Action Args
2015-11-28 14:29:08mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, terry.reedy, facundobatista, skrah, docs@python, John.Yeung
2015-11-28 14:29:08mark.dickinsonsetmessageid: <>
2015-11-28 14:29:08mark.dickinsonlinkissue25735 messages
2015-11-28 14:29:08mark.dickinsoncreate