mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -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