You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jukka Lehtosalo edited this page Oct 24, 2022
·
3 revisions
Generator functions must maintain state between invocations. A generator function is compiled into two classes. One is an environment class that maintains local variables of the function. The second one is the actual generator. The environment class is similar to mypyc uses to support nested functions.