Re: [Python-ideas] Boolean parameters guidelines

2016-05-08 Thread Ian Kelly
On May 8, 2016 9:37 AM, "Steven D'Aprano" 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. -- https://mail.python.org/mailman/listinfo/python-lis

Re: [Python-ideas] Boolean parameters guidelines

2016-05-08 Thread Steven D'Aprano
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" wrote: >> >> def pvariance(data, mu=None): >> if iter(data) is data: >> data = list(dat

Re: [Python-ideas] Boolean parameters guidelines

2016-05-08 Thread Ian Kelly
On May 8, 2016 12:42 AM, "Steven D'Aprano" 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(