diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-10-10 22:23:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 22:23:42 +0300 |
commit | 98c4433a81a4cd88c7438adbee1f2aa486188ca3 (patch) | |
tree | 68dd030d113eb842692d4f50475992a110fb7154 /Include | |
parent | bpo-42000: Cleanup the AST related C-code (GH-22641) (diff) | |
download | cpython-98c4433a81a4cd88c7438adbee1f2aa486188ca3.tar.gz cpython-98c4433a81a4cd88c7438adbee1f2aa486188ca3.tar.bz2 cpython-98c4433a81a4cd88c7438adbee1f2aa486188ca3.zip |
bpo-41991: Remove _PyObject_HasAttrId (GH-22629)
It can silence arbitrary exceptions.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/object.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index ae3920d4508..875a600f795 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -306,7 +306,6 @@ PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *); PyAPI_FUNC(int) _PyObject_IsAbstract(PyObject *); PyAPI_FUNC(PyObject *) _PyObject_GetAttrId(PyObject *, struct _Py_Identifier *); PyAPI_FUNC(int) _PyObject_SetAttrId(PyObject *, struct _Py_Identifier *, PyObject *); -PyAPI_FUNC(int) _PyObject_HasAttrId(PyObject *, struct _Py_Identifier *); /* Replacements of PyObject_GetAttr() and _PyObject_GetAttrId() which don't raise AttributeError. |