diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-22 16:54:03 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-22 16:54:03 +1000 |
commit | 400273a799581e5eb86538d8c88fb872705475ab (patch) | |
tree | eef7253947cfeabef14cd6223a0c965ccd43d2c8 /py/compile.c | |
parent | 771cb359af5242762baa29645c37cafa23c47b25 (diff) | |
download | micropython-400273a799581e5eb86538d8c88fb872705475ab.tar.gz micropython-400273a799581e5eb86538d8c88fb872705475ab.zip |
py/objgenerator: Protect against reentering a generator.
Generators that are already executing cannot be reexecuted. This patch
puts in a check for such a case.
Thanks to @jepler for finding the bug.
Diffstat (limited to 'py/compile.c')
0 files changed, 0 insertions, 0 deletions