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 neilwebber
Recipients docs@python, neilwebber
Date 2022-02-22.19:04:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645556673.97.0.708040802519.issue46828@roundup.psfhosted.org>
In-reply-to
Content
The math module documentation says:

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

But this code returns an integer:

   from math import prod; prod((1,2,3))

Doc should "explicitly note otherwise" here, I imagine. The issue being wanting to know that the result on all-integer input will be an exact (integer) value not a floating value.
History
Date User Action Args
2022-02-22 19:04:34neilwebbersetrecipients: + neilwebber, docs@python
2022-02-22 19:04:33neilwebbersetmessageid: <1645556673.97.0.708040802519.issue46828@roundup.psfhosted.org>
2022-02-22 19:04:33neilwebberlinkissue46828 messages
2022-02-22 19:04:33neilwebbercreate