diff options
author | Yury Selivanov <yury@edgedb.com> | 2021-09-07 10:52:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 10:52:30 (GMT) |
commit | 2c3474a637949aa6f2f7e15f9764c2dfc49cdba1 (patch) | |
tree | d19d7d6dbdeb410d2413711b9610bc4344fd12ef /PC | |
parent | eb254b43d2916ef8c0e9ca815fe047411d848aae (diff) | |
download | cpython-2c3474a637949aa6f2f7e15f9764c2dfc49cdba1.zip cpython-2c3474a637949aa6f2f7e15f9764c2dfc49cdba1.tar.gz cpython-2c3474a637949aa6f2f7e15f9764c2dfc49cdba1.tar.bz2 |
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>
Diffstat (limited to 'PC')
-rwxr-xr-x | PC/python3dll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c index 2420e53..49b51e6 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -86,7 +86,7 @@ EXPORT_FUNC(Py_SetPythonHome) EXPORT_FUNC(Py_SetRecursionLimit) EXPORT_FUNC(Py_VaBuildValue) EXPORT_FUNC(Py_XNewRef) -EXPORT_FUNC(PyAiter_Check) +EXPORT_FUNC(PyAIter_Check) EXPORT_FUNC(PyArg_Parse) EXPORT_FUNC(PyArg_ParseTuple) EXPORT_FUNC(PyArg_ParseTupleAndKeywords) @@ -443,7 +443,7 @@ EXPORT_FUNC(PyObject_GenericGetAttr) EXPORT_FUNC(PyObject_GenericGetDict) EXPORT_FUNC(PyObject_GenericSetAttr) EXPORT_FUNC(PyObject_GenericSetDict) -EXPORT_FUNC(PyObject_GetAiter) +EXPORT_FUNC(PyObject_GetAIter) EXPORT_FUNC(PyObject_GetAttr) EXPORT_FUNC(PyObject_GetAttrString) EXPORT_FUNC(PyObject_GetItem) |