[Python-ideas] Boolean parameters guidelines

Steven D'Aprano steve at pearwood.info
Sun May 8 11:34:08 EDT 2016


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




More information about the Python-list mailing list