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:
Miss Islington (bot) 2021-09-07 04:43:33 -07:00 committed by GitHub
parent fc840736e5
commit 53257cf19f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 5886 additions and 10809 deletions

View file

@ -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 *);