Skip to content

bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename.#28194

Merged
pablogsal merged 2 commits into
python:mainfrom
1st1:bpo-45123
Sep 7, 2021
Merged

bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename.#28194
pablogsal merged 2 commits into
python:mainfrom
1st1:bpo-45123

Conversation

@1st1

@1st1 1st1 commented Sep 7, 2021

Copy link
Copy Markdown
Member

Fix PyAiter_Check to only check for the __anext__ presense (not for
__aiter__). Rename PyAiter_Check() to PyAIter_Check(),
PyObject_GetAiter() -> PyObject_GetAIter().

https://bugs.python.org/issue45123

Automerge-Triggered-By: GH:pablogsal

Fix PyAiter_Check to only check for the `__anext__` presense (not for
`__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`,
`PyObject_GetAiter()` -> `PyObject_GetAIter()`.
Comment thread Misc/NEWS.d/next/Core and Builtins/2021-09-06-21-52-45.bpo-45123.8Eh9iI.rst Outdated
…23.8Eh9iI.rst

Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
@pablogsal
pablogsal merged commit 2c3474a into python:main Sep 7, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @1st1 for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Sep 7, 2021
@bedevere-bot

Copy link
Copy Markdown

GH-28199 is a backport of this pull request to the 3.10 branch.

pablogsal pushed a commit to miss-islington/cpython that referenced this pull request Sep 7, 2021
…H-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>
(cherry picked from commit 2c3474a)

Co-authored-by: Yury Selivanov <yury@edgedb.com>
pablogsal pushed a commit that referenced this pull request Sep 7, 2021
… (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()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants