mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194)
Fix PyAiter_Check to only check for the `__anext__` presense (not for `__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`, `PyObject_GetAiter()` -> `PyObject_GetAIter()`. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
eb254b43d2
commit
2c3474a637
10 changed files with 23 additions and 22 deletions
|
@ -358,7 +358,7 @@ Object Protocol
|
|||
iterated.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyObject_GetAiter(PyObject *o)
|
||||
.. c:function:: PyObject* PyObject_GetAIter(PyObject *o)
|
||||
|
||||
This is the equivalent to the Python expression ``aiter(o)``. Takes an
|
||||
:class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue