]> granicus.if.org Git - python/commit
Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 6 Nov 2016 16:44:42 +0000 (18:44 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 6 Nov 2016 16:44:42 +0000 (18:44 +0200)
commit24411f8a8daace4ebf8abd41091b681160b4fb89
treef82a4ca89149075c9e764e82093c253b8e03de46
parent04b3d8b6973150bf0c3ce9ec0ffe5cabf4161b7b
Issue #23996: Added _PyGen_SetStopIterationValue for safe raising
StopIteration with value. More safely handle non-normalized exceptions
in -_PyGen_FetchStopIterationValue.
Include/genobject.h
Lib/test/test_coroutines.py
Lib/test/test_generators.py
Objects/genobject.c