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


Groups > comp.lang.python > #108354 > unrolled thread

Re: [Python-ideas] Boolean parameters guidelines

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2016-05-08 08:24 -0600
Last post2016-05-08 10:08 -0600
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#108354 — Re: [Python-ideas] Boolean parameters guidelines

FromIan Kelly <ian.g.kelly@gmail.com>
Date2016-05-08 08:24 -0600
SubjectRe: [Python-ideas] Boolean parameters guidelines
Message-ID<mailman.514.1462717477.32212.python-list@python.org>
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)

[toc] | [next] | [standalone]


#108364

FromSteven D'Aprano <steve@pearwood.info>
Date2016-05-09 01:34 +1000
Message-ID<572f5c71$0$1597$c3e8da3$5496439d@news.astraweb.com>
In reply to#108354
Not sure why this has migrated to this list instead of Python-Ideas.

Possibly a copy-paste error? *wink*

On Mon, 9 May 2016 12:24 am, Ian Kelly wrote:

> 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?

I have literally no idea how that happened.

Anyway, it's fixed now.


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#108366

FromIan Kelly <ian.g.kelly@gmail.com>
Date2016-05-08 10:08 -0600
Message-ID<mailman.519.1462723735.32212.python-list@python.org>
In reply to#108364
On May 8, 2016 9:37 AM, "Steven D'Aprano" <steve@pearwood.info> wrote:
>
> Not sure why this has migrated to this list instead of Python-Ideas.

Because Gmail has somehow never gotten around to implementing reply-to-list
and I'm terrible at choosing the right one.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web