Message354241
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:45 | WarrenWeckesser | set | recipients:
+ WarrenWeckesser, tim.peters, rhettinger, mark.dickinson, steven.daprano |
2019-10-09 00:32:44 | WarrenWeckesser | set | messageid: <1570581164.97.0.236739462384.issue38382@roundup.psfhosted.org> |
2019-10-09 00:32:44 | WarrenWeckesser | link | issue38382 messages |
2019-10-09 00:32:44 | WarrenWeckesser | create | |
|