[Python-ideas] Boolean parameters guidelines

Joseph Jevnik joejev at gmail.com
Sat May 7 18:04:52 EDT 2016


+1: This is by far my biggest use case for keyword only parameters.

On Sat, May 7, 2016 at 5:41 PM, Serhiy Storchaka <storchaka at gmail.com>
wrote:

> I propose to add following recommendations in PEP 8 or other documents:
>
> 1. It is preferable to pass boolean arguments as keyword arguments (if
> this is not the only argument).
>
> 2. It is preferable to declare boolean parameters as keyword-only
> parameters.
>
> What are you think about this?
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160507/cf61f62c/attachment.html>


More information about the Python-ideas mailing list