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
On the other hand, the actual search for names is done dynamically, at run time — however, the language definition is evolving towards static name resolution, at “compile” time, so don’t rely on dynamic name resolution! (In fact, local variables are already determined statically.)
See #4 (comment) and subsequent discussion.
Python's runtime name resolution means that the name binding of a closed variable can be changed.
We should either disallow this, specialize
g
multiple times, or perform name resolution at runtime instead of at compile-time.The text was updated successfully, but these errors were encountered: