Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108354

Re: [Python-ideas] Boolean parameters guidelines

From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: [Python-ideas] Boolean parameters guidelines
Date 2016-05-08 08:24 -0600
Message-ID <mailman.514.1462717477.32212.python-list@python.org> (permalink)
References <nglneq$pah$1@ger.gmane.org> <20160508015932.GS12028@ando.pearwood.info> <CAH0mxTR3bDqedWR_rcfmiyUpKLGKrhan05N9UR=v_yDRWcQyVA@mail.gmail.com> <20160508064113.GU12028@ando.pearwood.info> <CALwzidmRMvDdvDbpSCVN1QjtVxuLMEqWmy3SzN_W8tb6BPcobQ@mail.gmail.com>

Show all headers | View raw


On May 8, 2016 12:42 AM, "Steven D'Aprano" <steve@pearwood.info> wrote:
>
> def pvariance(data, mu=None):
>     if iter(data) is data:
>         data = list(data)
>     n = len(data)
>     if n < 1:
>         raise StatisticsError('pvariance requires at least one data
point')
>     ss = _ss(data, mu)
>     T, ss = _ss(data, mu)

Copy-paste error?

>     return _convert(ss/n, T)

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [Python-ideas] Boolean parameters guidelines Ian Kelly <ian.g.kelly@gmail.com> - 2016-05-08 08:24 -0600
  Re: [Python-ideas] Boolean parameters guidelines Steven D'Aprano <steve@pearwood.info> - 2016-05-09 01:34 +1000
    Re: [Python-ideas] Boolean parameters guidelines Ian Kelly <ian.g.kelly@gmail.com> - 2016-05-08 10:08 -0600

csiph-web