https://github.com/python/cpython/commit/c05a851ac59e6fb7bd433677b9c116fb8336a8b1
commit: c05a851ac59e6fb7bd433677b9c116fb8336a8b1
branch: main
author: sobolevn <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-01-23T23:38:51+05:30
summary:
gh-91048: Improve example in `asyncio-graph.rst` doc (#129224)
files:
M Doc/library/asyncio-graph.rst
diff --git a/Doc/library/asyncio-graph.rst b/Doc/library/asyncio-graph.rst
index fc8edeb426c567..814bfe6e269bf9 100644
--- a/Doc/library/asyncio-graph.rst
+++ b/Doc/library/asyncio-graph.rst
@@ -59,13 +59,13 @@ and debuggers.
async def main():
async with asyncio.TaskGroup() as g:
- g.create_task(test())
+ g.create_task(test(), name='test')
asyncio.run(main())
will print::
- * Task(name='Task-2', id=0x1039f0fe0)
+ * Task(name='test', id=0x1039f0fe0)
+ Call stack:
| File 't2.py', line 4, in async test()
+ Awaited by:
_______________________________________________
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]