mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
py/objgenerator: Remove TODO about returning gen being called again.
The code implements correct behaviour, as tested by the new test case added in this commit.
This commit is contained in:
@@ -8,3 +8,9 @@ try:
|
||||
print(next(g))
|
||||
except StopIteration as e:
|
||||
print(type(e), e.args)
|
||||
|
||||
# trying next again should raise StopIteration with no arguments
|
||||
try:
|
||||
print(next(g))
|
||||
except StopIteration as e:
|
||||
print(type(e), e.args)
|
||||
|
||||
Reference in New Issue
Block a user