<div dir="ltr">+1: This is by far my biggest use case for keyword only parameters.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 7, 2016 at 5:41 PM, Serhiy Storchaka <span dir="ltr"><<a href="mailto:storchaka@gmail.com" target="_blank">storchaka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I propose to add following recommendations in PEP 8 or other documents:<br>
<br>
1. It is preferable to pass boolean arguments as keyword arguments (if this is not the only argument).<br>
<br>
2. It is preferable to declare boolean parameters as keyword-only parameters.<br>
<br>
What are you think about this?<br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div><br></div>