aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-10-10 22:23:42 +0300
committerGitHub <noreply@github.com>2020-10-10 22:23:42 +0300
commit98c4433a81a4cd88c7438adbee1f2aa486188ca3 (patch)
tree68dd030d113eb842692d4f50475992a110fb7154 /Include
parentbpo-42000: Cleanup the AST related C-code (GH-22641) (diff)
downloadcpython-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.h1
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.