From 24411f8a8daace4ebf8abd41091b681160b4fb89 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 6 Nov 2016 18:44:42 +0200 Subject: Issue #23996: Added _PyGen_SetStopIterationValue for safe raising StopIteration with value. More safely handle non-normalized exceptions in -_PyGen_FetchStopIterationValue. --- Include/genobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/genobject.h') diff --git a/Include/genobject.h b/Include/genobject.h index 1ff32a8eaf..61e708a73a 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 *); -- cgit v1.2.1