summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-06 16:44:42 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-06 16:44:42 (GMT)
commit24411f8a8daace4ebf8abd41091b681160b4fb89 (patch)
treef82a4ca89149075c9e764e82093c253b8e03de46 /Include
parent04b3d8b6973150bf0c3ce9ec0ffe5cabf4161b7b (diff)
downloadcpython-24411f8a8daace4ebf8abd41091b681160b4fb89.zip
cpython-24411f8a8daace4ebf8abd41091b681160b4fb89.tar.gz
cpython-24411f8a8daace4ebf8abd41091b681160b4fb89.tar.bz2
Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue.
Diffstat (limited to 'Include')
-rw-r--r--Include/genobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h
index 1ff32a8..61e708a 100644
--- a/Include/genobject.h
+++ b/Include/genobject.h
@@ -41,6 +41,7 @@ PyAPI_FUNC(PyObject *) PyGen_New(struct _frame *);
PyAPI_FUNC(PyObject *) PyGen_NewWithQualName(struct _frame *,
PyObject *name, PyObject *qualname);
PyAPI_FUNC(int) PyGen_NeedsFinalizing(PyGenObject *);
+PyAPI_FUNC(int) _PyGen_SetStopIterationValue(PyObject *);
PyAPI_FUNC(int) _PyGen_FetchStopIterationValue(PyObject **);
PyObject *_PyGen_Send(PyGenObject *, PyObject *);
PyObject *_PyGen_yf(PyGenObject *);