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 terry.reedy
Recipients John.Yeung, docs@python, facundobatista, mark.dickinson, rhettinger, skrah, terry.reedy
Date 2015-11-27.19:53:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I agree.  In testing, I discovered this bug
>>> factorial(decimal.Decimal(5.2))
I don't know if this is a glitch in factorial or Decimal.

I also noticed
>>> fac(fractions.Fraction(4, 1))
Traceback (most recent call last):
  File "<pyshell#10>", line 1, in <module>
    fac(fractions.Fraction(4, 1))
TypeError: an integer is required (got type Fraction)
Perhaps this is due to no __int__ method.
Date User Action Args
2015-11-27 19:53:29terry.reedysetrecipients: + terry.reedy, rhettinger, facundobatista, mark.dickinson, skrah, docs@python, John.Yeung
2015-11-27 19:53:29terry.reedysetmessageid: <>
2015-11-27 19:53:29terry.reedylinkissue25735 messages
2015-11-27 19:53:29terry.reedycreate