Every variable is global
andersk opened this issue · comments
Anders Kaseorg commented
This test case incorrectly outputs 2 when onelined.
x = 1
def foo():
x = 2
foo()
print x
Perhaps the symtable
module can help compute the correct scopes?
Anders Kaseorg commented
Largely fixed by #36. There are still some subtle issues that I’ll file as separate bugs.