[Python-ideas] Boolean parameters guidelines

Sven R. Kunze srkunze at mail.de
Thu May 12 03:50:08 EDT 2016

On 11.05.2016 23:57, Ethan Furman wrote:
> On 05/11/2016 02:40 PM, Zachary Ware wrote:
>> On Wed, May 11, 2016 at 3:36 PM, Ian Kelly wrote:
>>> You just weren't explicit enough:
>>>     --> sleep(timedelta(100).total_seconds())
>>> This is drifting pretty far from the topic at hand, though.
> There was a topic at hand?
> Oh, yeah, keyword arguments!
> Actually, it's very apropos:  each of those examples would have been 
> either obviously correct or obviously wrong if the parameter names had 
> been used.


It's something that's already baked in our internal style guidelines. 
Mostly because we are too lazy to read the docs or jump to definition.


PS: It's interesting to see how easy it is to get off-topic as soon as 
an example is present.

More information about the Python-ideas mailing list