[Python-ideas] statistics module in Python3.4
Steven D'Aprano
steve at pearwood.info
Fri Jan 31 10:04:41 CET 2014
On Fri, Jan 31, 2014 at 08:57:26AM +0000, Wolfgang Maier wrote:
> Steven D'Aprano <steve at ...> writes:
> > I'm hesitant to require two passes over the data in _sum.
[...]
> Regarding your comments above and in other posts:
> I never proposed two passes over the data. My implementation (below again
> because many people seem to have missed it in my first rather long post)
> gathers the input types in a set **while** calculating the sum in a single
> for loop. It then calls _coerce_types passing this set only once:
Ah! I did miss it -- I just skimmed your implementation, and completely
failed to realise the point you were making. Thank you for the
correction.
--
Steven
More information about the Python-ideas
mailing list