diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-11 19:13:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 19:13:27 (GMT) |
commit | 579aa89e68a6607398317a50586af781981e89fb (patch) | |
tree | 9f12badb2781f6af3fcc73ef65a940e885b5683a /PC | |
parent | cabd6e8a107127ff02f0b514148f648fb2472a58 (diff) | |
download | cpython-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-x | PC/python3dll.c | 2 |
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) |