Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Bug report
Bug description:
consider:
importasyncioasyncdefmain():names= []asyncwithasyncio.TaskGroup()astg:asyncdefappend_name():names.append(asyncio.current_task().get_name())tg.create_task(append_name(),name="example name")print(names)defloop_factory():loop=asyncio.EventLoop()loop.set_task_factory(asyncio.eager_task_factory)returnloopasyncio.run(main())asyncio.run(main(),loop_factory=loop_factory)
this outputs:
['example name']['Task-5']
but it should output:
['example name']['example name']
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done