summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-10-29 00:19:37 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-10-29 00:19:37 (GMT)
commit41bb43a71e1caa4e6993c6571544d415c9e178b9 (patch)
tree7c6dd0407d1aff5ba9c4e6b4789bee09f95b3fc2 /Include
parent28c63f7ffb9f9cb59c524dc14ce66d34c0e83af6 (diff)
downloadcpython-41bb43a71e1caa4e6993c6571544d415c9e178b9.zip
cpython-41bb43a71e1caa4e6993c6571544d415c9e178b9.tar.gz
cpython-41bb43a71e1caa4e6993c6571544d415c9e178b9.tar.bz2
Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle
exceptions when merging fast locals into f_locals of a frame. PyEval_GetLocals() now raises an exception and return NULL on failure.
Diffstat (limited to 'Include')
-rw-r--r--Include/frameobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index 18419bf..b41bea6 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -78,6 +78,8 @@ PyAPI_FUNC(PyObject **) PyFrame_ExtendStack(PyFrameObject *, int, int);
/* Conversions between "fast locals" and locals in dictionary */
PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);
+
+PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);
PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
PyAPI_FUNC(int) PyFrame_ClearFreeList(void);