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 WarrenWeckesser
Recipients WarrenWeckesser, mark.dickinson, rhettinger, steven.daprano, tim.peters
Date 2019-10-09.00:32:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570581164.97.0.236739462384.issue38382@roundup.psfhosted.org>
In-reply-to
Content
One more case where the "early out" produces a result that seems wrong:

In [20]: harmonic_mean([math.nan, 0])                                           
Out[20]: 0

Anyone who didn't know about the "early out" behavior would probably expect the result to be NAN.
History
Date User Action Args
2019-10-09 00:32:45WarrenWeckessersetrecipients: + WarrenWeckesser, tim.peters, rhettinger, mark.dickinson, steven.daprano
2019-10-09 00:32:44WarrenWeckessersetmessageid: <1570581164.97.0.236739462384.issue38382@roundup.psfhosted.org>
2019-10-09 00:32:44WarrenWeckesserlinkissue38382 messages
2019-10-09 00:32:44WarrenWeckessercreate