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) (GH-28199)
Fix PyAiter_Check to only check for the `__anext__` presense (not for `__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`, `PyObject_GetAiter()` -> `PyObject_GetAIter()`.
This commit is contained in:
parent
fc840736e5
commit
53257cf19f
11 changed files with 5886 additions and 10809 deletions
|
@ -1610,7 +1610,7 @@ static PyObject *
|
|||
builtin_aiter(PyObject *module, PyObject *async_iterable)
|
||||
/*[clinic end generated code: output=1bae108d86f7960e input=473993d0cacc7d23]*/
|
||||
{
|
||||
return PyObject_GetAiter(async_iterable);
|
||||
return PyObject_GetAIter(async_iterable);
|
||||
}
|
||||
|
||||
PyObject *PyAnextAwaitable_New(PyObject *, PyObject *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue