I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator.
3 lines
25 B
Python
3 lines
25 B
Python
def call(g):
|
|
next(g)
|