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 25, 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 the local variables of the function, and the label/location where execution will continue
(__mypyc_next_label__ attribute). The second class implements the actual generator. The environment class is similar to what mypyc uses to support nested functions.