mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
gh-108511: Add C API functions which do not silently ignore errors (GH-109025)
Add the following functions: * PyObject_HasAttrWithError() * PyObject_HasAttrStringWithError() * PyMapping_HasKeyWithError() * PyMapping_HasKeyStringWithError()
This commit is contained in:
parent
e57ecf6bbc
commit
add16f1a5e
28 changed files with 330 additions and 111 deletions
4
PC/python3dll.c
generated
4
PC/python3dll.c
generated
|
@ -359,6 +359,8 @@ EXPORT_FUNC(PyMapping_GetOptionalItem)
|
|||
EXPORT_FUNC(PyMapping_GetOptionalItemString)
|
||||
EXPORT_FUNC(PyMapping_HasKey)
|
||||
EXPORT_FUNC(PyMapping_HasKeyString)
|
||||
EXPORT_FUNC(PyMapping_HasKeyStringWithError)
|
||||
EXPORT_FUNC(PyMapping_HasKeyWithError)
|
||||
EXPORT_FUNC(PyMapping_Items)
|
||||
EXPORT_FUNC(PyMapping_Keys)
|
||||
EXPORT_FUNC(PyMapping_Length)
|
||||
|
@ -480,6 +482,8 @@ EXPORT_FUNC(PyObject_GetOptionalAttrString)
|
|||
EXPORT_FUNC(PyObject_GetTypeData)
|
||||
EXPORT_FUNC(PyObject_HasAttr)
|
||||
EXPORT_FUNC(PyObject_HasAttrString)
|
||||
EXPORT_FUNC(PyObject_HasAttrStringWithError)
|
||||
EXPORT_FUNC(PyObject_HasAttrWithError)
|
||||
EXPORT_FUNC(PyObject_Hash)
|
||||
EXPORT_FUNC(PyObject_HashNotImplemented)
|
||||
EXPORT_FUNC(PyObject_Init)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue