[Python-ideas] statistics module in Python3.4

Paul Moore p.f.moore at gmail.com
Sun Feb 2 00:13:55 CET 2014


On 1 February 2014 22:00, Wolfgang Maier
<wolfgang.maier at biologie.uni-freiburg.de> wrote:
> It may also help to address this from the users' perspective. What possible
> other use-cases could there be to pass a Mapping (let alone a Counter) to
> one of the functions in statistics?

Why not just pass counter.elements() to the functions if you want to
use a counter as a frequency table?

Maybe you're arguing that Mappings should be rejected with an
exception? But that seems like an unnecessary restriction just to
catch the mistaken usage of forgetting to call elements() on a
Counter.

Paul


More information about the Python-ideas mailing list