Skip to content

gh-157044: Fix asyncio call graph truncation at aiter(callable, stop) - #157153

Closed
KingLizard1020 wants to merge 8 commits into
python:mainfrom
KingLizard1020:gh-157044-aiter-call-graph
Closed

gh-157044: Fix asyncio call graph truncation at aiter(callable, stop)#157153
KingLizard1020 wants to merge 8 commits into
python:mainfrom
KingLizard1020:gh-157044-aiter-call-graph

Conversation

@KingLizard1020

@KingLizard1020 KingLizard1020 commented Sep 8, 2026

Copy link
Copy Markdown

The two-argument form of aiter() awaits an
async_callable_iterator_awaitable that previously exposed nothing about
the callable's coroutine, so asyncio.print_call_graph() stopped at
worker().

This exposes the wrapped awaitable as a read-only aw_wrapped member
(same approach as gh-156980's ag_gen) and steps over it in
asyncio.graph._build_graph_for_future.

Fixes #157044

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asyncio.print_call_graph() loses the call stack at aiter(callable, stop_value)

1 participant