Skip to content

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

Merged
kumaraditya303 merged 2 commits into
python:mainfrom
kumaraditya303:aiter-in-python
Oct 20, 2026
Merged

kumaraditya303 merged 2 commits 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.
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 87872bc 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F157687%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

# Conflicts:
#	Lib/test/test_inspect/test_inspect.py
#	Python/clinic/bltinmodule.c.h
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 20, 2026
@kumaraditya303 kumaraditya303 removed the type-feature A feature request or enhancement label Oct 20, 2026
@kumaraditya303
kumaraditya303 merged commit cb12c5e into python:main Oct 20, 2026
59 of 60 checks passed
@kumaraditya303
kumaraditya303 deleted the aiter-in-python branch October 20, 2026 10:03
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