]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194)
authorYury Selivanov <yury@edgedb.com>
Tue, 7 Sep 2021 10:52:30 +0000 (03:52 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Sep 2021 10:52:30 +0000 (11:52 +0100)
commit2c3474a637949aa6f2f7e15f9764c2dfc49cdba1
treed19d7d6dbdeb410d2413711b9610bc4344fd12ef
parenteb254b43d2916ef8c0e9ca815fe047411d848aae
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>
Doc/c-api/iter.rst
Doc/c-api/object.rst
Doc/data/refcounts.dat
Doc/data/stable_abi.dat
Include/abstract.h
Misc/NEWS.d/next/Core and Builtins/2021-09-06-21-52-45.bpo-45123.8Eh9iI.rst [new file with mode: 0644]
Misc/stable_abi.txt
Objects/abstract.c
PC/python3dll.c
Python/bltinmodule.c