[Python-ideas] Boolean parameters guidelines

Ian Kelly ian.g.kelly at gmail.com
Wed May 11 16:36:05 EDT 2016

On Wed, May 11, 2016 at 12:51 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
> On Wed, May 11, 2016 at 5:10 PM, Sven R. Kunze <srkunze at mail.de> wrote:
>> Additionally, it seems like this could be said for other primitive datatypes
>> as well:
>>>>> sleep(100)  # minutes?
> Don't be silly. Why on earth would that argument represent minutes?
> It's days, for consistency with `timedelta(100)`.

Still best to be explicit:

>>> sleep(timedelta(100))

It would be awesome if that actually worked.

More information about the Python-ideas mailing list