summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-11 10:51:27 +0200
committerGitHub <noreply@github.com>2018-12-11 10:51:27 +0200
commit3cae16d2e98ffaa89ddd311df70a857dfaff4020 (patch)
tree3670fd9018afba95a6498779d3bc48f376ac720e /Include
parent62674f3a36ec55f86a5f20ee028a37fbd549bd6c (diff)
downloadcpython-git-3cae16d2e98ffaa89ddd311df70a857dfaff4020.tar.gz
bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107)
(cherry picked from commit bb86bf4c4eaa30b1f5192dab9f389ce0bb61114d)
Diffstat (limited to 'Include')
-rw-r--r--Include/ceval.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index bce8a0beed..11283c0a57 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -48,10 +48,12 @@ PyAPI_FUNC(PyObject *) PyEval_GetGlobals(void);
PyAPI_FUNC(PyObject *) PyEval_GetLocals(void);
PyAPI_FUNC(struct _frame *) PyEval_GetFrame(void);
+#ifndef Py_LIMITED_API
+/* Helper to look up a builtin object */
+PyAPI_FUNC(PyObject *) _PyEval_GetBuiltinId(_Py_Identifier *);
/* Look at the current frame's (if any) code's co_flags, and turn on
the corresponding compiler flags in cf->cf_flags. Return 1 if any
flag was set, else return 0. */
-#ifndef Py_LIMITED_API
PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);
#endif