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
Traceback (most recent call last):
File "test3.py", line 5, in <module>
foo()
File "test3.py", line 3, in foo
x += 1
UnboundLocalError: local variable 'x' referenced before assignment
RusyPython bytecode Load x from free scope, it means that load variables globally when reading from a local scope fails.
In cpython, it just load variable from locals.
Expected
Actual
This might be related to #1333
The text was updated successfully, but these errors were encountered: