[Python-ideas] Sleep and timedelta Was: Boolean parameters guidelines

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed May 11 20:16:21 EDT 2016


On Wed, May 11, 2016 at 4:36 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:

> Still best to be explicit:
>
> >>> sleep(timedelta(100))
>
> It would be awesome if that actually worked.
>

FWIW, I would not mind seeing sleep() as a timedelta instance method:

>>> timedelta(seconds=42).sleep()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160511/0ba4ae97/attachment.html>


More information about the Python-ideas mailing list