Skip to content

gh-157361: Implement aiter() in Python instead of C - #157687

Open
kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:aiter-in-python
Open

kumaraditya303 wants to merge 1 commit into
python:mainfrom
kumaraditya303:aiter-in-python

Conversation

@kumaraditya303

@kumaraditya303 kumaraditya303 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Move both forms of aiter() into the frozen _pybuiltins module and remove the C async_callable_iterator types. The callable form now returns an iterator whose __anext__() is a plain coroutine, so call-graph tools can see through it into the awaited result of the callable.

Move both forms of aiter() into the frozen _pybuiltins module and remove
the C async_callable_iterator types. The callable form now returns an
iterator whose __anext__() is a plain coroutine, so call-graph tools can
see through it into the awaited result of the callable.
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.

1 participant