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 John.Yeung
Recipients John.Yeung, docs@python
Date 2015-11-25.19:44:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The math module docs state

Except when explicitly noted otherwise, all return values are floats.

But math.factorial isn't what I would call explicit about returning int:

    Return x factorial. Raises ValueError if x is not integral or is negative.

At minimum, shouldn't the first sentence be "Return x factorial as an int."? I haven't tested on all Python versions, but math.factorial on 2.7 and 3.2 definitely return int (or long in Python 2 when necessary).
Date User Action Args
2015-11-25 19:44:31John.Yeungsetrecipients: + John.Yeung, docs@python
2015-11-25 19:44:31John.Yeungsetmessageid: <>
2015-11-25 19:44:31John.Yeunglinkissue25735 messages
2015-11-25 19:44:31John.Yeungcreate