diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-06 16:47:35 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-06 16:47:35 (GMT) |
| commit | 85bcf37e15ddb2ffae79af803f58280300f2cea0 (patch) | |
| tree | 048651f5b2b37f67d46cf99fdf30bc66dc1d4469 /Include/genobject.h | |
| parent | 692b97c8482d36ad96f652ccd324094b60db12d5 (diff) | |
| parent | 60e49aa7560ca70bc5de461abc68eb72d8739e17 (diff) | |
| download | cpython-85bcf37e15ddb2ffae79af803f58280300f2cea0.zip cpython-85bcf37e15ddb2ffae79af803f58280300f2cea0.tar.gz cpython-85bcf37e15ddb2ffae79af803f58280300f2cea0.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/genobject.h')
| -rw-r--r-- | Include/genobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h index 1ee4fd5..8c1825f 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 **); PyAPI_FUNC(PyObject *) _PyGen_Send(PyGenObject *, PyObject *); PyObject *_PyGen_yf(PyGenObject *); |
