mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue