[Python-ideas] Boolean parameters guidelines

Joao S. O. Bueno jsbueno at python.org.br
Sun May 8 00:58:35 EDT 2016


On 7 May 2016 at 22:59, Steven D'Aprano <steve at pearwood.info> wrote:
> So instead there are two separate functions, variance and
> pvariance.

Which, to avoid copy and pasting code, would obviously each consist
of a call do a _variance private function, passing the operation mode as a ...
Boolean parameter.

And, if there are three booleans, one should actually write 8 different
functions doing the same thing....

So, regardless of Guido or have or not having advised that, I think this is just
bogus.


More information about the Python-ideas mailing list