[Python-ideas] Boolean parameters guidelines

Serhiy Storchaka storchaka at gmail.com
Sat May 7 17:41:45 EDT 2016


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?



More information about the Python-ideas mailing list