[issue42783] asyncio.sleep(0) idiom is not documented

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue42783] asyncio.sleep(0) idiom is not documented

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: New changeset 632b4034ab517b5d7f302c94fd9dc5a28c85f049 by Ken Jin in branch '3.9': [3.9] bpo-42783: Documentation for asyncio.sleep(0) (GH-24002) (GH-24153) https://github.com/python/cpython/commit/632b4034ab517b5d7f302c94fd9dc5a28c85f049 -- nosy:

[issue42783] asyncio.sleep(0) idiom is not documented

2021-01-07 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 5.0 -> 6.0 pull_requests: +22981 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/24153 ___ Python tracker

[issue42783] asyncio.sleep(0) idiom is not documented

2021-01-06 Thread Nick Coghlan
Nick Coghlan added the comment: I merged the update to the 3.10 docs, but the automated backport to 3.9 to update the online docs failed. -- resolution: -> fixed stage: patch review -> backport needed versions: +Python 3.10, Python 3.9 ___ Python

[issue42783] asyncio.sleep(0) idiom is not documented

2021-01-06 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 5c30145afb6053998e3518befff638d207047f00 by Simon Willison in branch 'master': bpo-42783: Documentation for asyncio.sleep(0) (#24002) https://github.com/python/cpython/commit/5c30145afb6053998e3518befff638d207047f00 -- nosy: +ncoghlan

[issue42783] asyncio.sleep(0) idiom is not documented

2020-12-29 Thread Simon Willison
Change by Simon Willison : -- keywords: +patch pull_requests: +22845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24002 ___ Python tracker ___

[issue42783] asyncio.sleep(0) idiom is not documented

2020-12-29 Thread Simon Willison
New submission from Simon Willison : asyncio.sleep(0) is the recommended idiom for co-operatively yielding control of the event loop to another task: https://github.com/python/asyncio/issues/284 and https://til.simonwillison.net/python/yielding-in-asyncio This isn't currently explained in