https://github.com/python/cpython/commit/8b7d6c53eee2226b08bed761d5a1742b5adb8507
commit: 8b7d6c53eee2226b08bed761d5a1742b5adb8507
branch: main
author: Kumar Aditya <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-10-20T10:14:16Z
summary:

gh-157361: Add What's New entry for anext() and aiter() in Python (#159867)

files:
M Doc/whatsnew/3.16.rst

diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst
index 09087c2fefda55..565cd7504d7ea9 100644
--- a/Doc/whatsnew/3.16.rst
+++ b/Doc/whatsnew/3.16.rst
@@ -100,6 +100,13 @@ Other language changes
   missing the ``self`` parameter. (Contributed by Suren Nihalani in
   :gh:`152315`.)
 
+* :func:`anext` and :func:`aiter` are now implemented in Python instead
+  of C.  The awaitable returned by ``anext(it, default)`` and the
+  ``__anext__()`` of the iterator returned by ``aiter(callable, ...)`` are
+  now plain coroutines, so introspection tools such as
+  :func:`asyncio.print_call_graph` can see through them into the awaited code.
+  (Contributed by Kumar Aditya in :gh:`157361`.)
+
 
 New modules
 ===========

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to