Skip to content

Fix anext awaitable ag gen - #157034

Closed
anshuman0123 wants to merge 2 commits into
python:mainfrom
anshuman0123:fix-anext-awaitable-ag-gen
Closed

Fix anext awaitable ag gen#157034
anshuman0123 wants to merge 2 commits into
python:mainfrom
anshuman0123:fix-anext-awaitable-ag-gen

Conversation

@anshuman0123

Copy link
Copy Markdown

No description provided.

deadlovelll and others added 2 commits September 6, 2026 18:40
…graph

Expose ag_gen attribute on anext_awaitable objects (returned by
anext(agen, default)) that delegates to the wrapped awaitable's
ag_gen. This allows asyncio.print_call_graph() and capture_call_graph()
to traverse through anext_awaitable to reach the underlying async
generator without truncating the call stack.
@python-cla-bot

python-cla-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

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.

2 participants