[Python-ideas] statistics module in Python3.4

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Sat Feb 1 21:10:25 CET 2014


Greg Ewing <greg.ewing at ...> writes:

> 
> Wolfgang Maier wrote:
> > Mappings may be an excellent way of specifying frequencies and weights in an
> > elegant way.
> 
> That may be, but I think I'd rather have a separate
> function, or a mode argument, explicitly indicating
> that this is what you want. Detecting whether something
> is a mapping in a duck-typed way is dodgy in general.
> 

There should be nothing dodgy about this with the abstract base class Mapping.

Best,
Wolfgang





More information about the Python-ideas mailing list