summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-11 19:13:27 (GMT)
committerGitHub <noreply@github.com>2023-07-11 19:13:27 (GMT)
commit579aa89e68a6607398317a50586af781981e89fb (patch)
tree9f12badb2781f6af3fcc73ef65a940e885b5683a /PC
parentcabd6e8a107127ff02f0b514148f648fb2472a58 (diff)
downloadcpython-579aa89e68a6607398317a50586af781981e89fb.zip
cpython-579aa89e68a6607398317a50586af781981e89fb.tar.gz
cpython-579aa89e68a6607398317a50586af781981e89fb.tar.bz2
gh-106521: Add PyObject_GetOptionalAttr() function (GH-106522)
It is a new name of former _PyObject_LookupAttr(). Add also PyObject_GetOptionalAttrString().
Diffstat (limited to 'PC')
-rwxr-xr-xPC/python3dll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index a717391..7d71929 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -469,6 +469,8 @@ EXPORT_FUNC(PyObject_GetAttrString)
EXPORT_FUNC(PyObject_GetBuffer)
EXPORT_FUNC(PyObject_GetItem)
EXPORT_FUNC(PyObject_GetIter)
+EXPORT_FUNC(PyObject_GetOptionalAttr)
+EXPORT_FUNC(PyObject_GetOptionalAttrString)
EXPORT_FUNC(PyObject_GetTypeData)
EXPORT_FUNC(PyObject_HasAttr)
EXPORT_FUNC(PyObject_HasAttrString)