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 <>
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.
Date User Action Args
2019-10-09 00:32:45WarrenWeckessersetrecipients: + WarrenWeckesser, tim.peters, rhettinger, mark.dickinson, steven.daprano
2019-10-09 00:32:44WarrenWeckessersetmessageid: <>
2019-10-09 00:32:44WarrenWeckesserlinkissue38382 messages
2019-10-09 00:32:44WarrenWeckessercreate