https://github.com/python/cpython/commit/6afdb098593d1e1c08fdd2aee7306d768a2e3bff commit: 6afdb098593d1e1c08fdd2aee7306d768a2e3bff branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: willingc <[email protected]> date: 2024-10-12T20:43:30Z summary:
[3.13] gh-125289: Update sample code in asyncio-task.rst (GH-125292) (GH-125374) gh-125289: Update sample code in asyncio-task.rst (GH-125292) * Update sample code in asyncio-task.rst This will change **coroutines** sample code in the **Awaitables** section and make the example clearer. * Update Doc/library/asyncio-task.rst Revert the added print * Update Doc/library/asyncio-task.rst --------- (cherry picked from commit fa52b82c91a8e1a0971bd5fef656473ec93f41e3) Co-authored-by: Ghorban M. Tavakoly <[email protected]> Co-authored-by: Carol Willing <[email protected]> files: M Doc/library/asyncio-task.rst diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 4716a3f9c8ac79..f27e858cf420f4 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -158,7 +158,7 @@ other coroutines:: # Nothing happens if we just call "nested()". # A coroutine object is created but not awaited, # so it *won't run at all*. - nested() + nested() # will raise a "RuntimeWarning". # Let's do it differently now and await it: print(await nested()) # will print "42". _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
