summaryrefslogtreecommitdiffstatshomepage
path: root/py/vm.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-03-31 04:09:53 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-03-31 17:22:37 +0300
commit817e76a1a56f34c6c87ca6196dbeab09ff01ba80 (patch)
treed75ab44d5edb992f0f09cd7154c0ed1c5896e1ee /py/vm.c
parent1eac05d5414678d23cff3d1dde8bd234c4edcc0b (diff)
downloadmicropython-817e76a1a56f34c6c87ca6196dbeab09ff01ba80.tar.gz
micropython-817e76a1a56f34c6c87ca6196dbeab09ff01ba80.zip
objgenerator.throw(GeneratorExit) is not equivalent to .close().
.throw() propagates any exceptions, and .close() swallows them. Yielding in reponse to .throw(GeneratorExit) is still fatal, and we need to handle it for .throw() case separately (previously it was handled only for .close() case). Obscure corner cases due to test_pep380.py.
Diffstat (limited to 'py/vm.c')
0 files changed, 0 insertions, 0 deletions