We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad53c2 commit 51934e0Copy full SHA for 51934e0
tests/snippets/class.py
@@ -175,6 +175,9 @@ def b():
175
A.b()
176
177
# TODO: uncomment once free vars/cells are working
178
+# The symboltable sees that b() is referring to a in the nested scope,
179
+# so it marks it as non local. When it's executed, it walks up the scopes
180
+# and still finds the a from the class scope.
181
# a = 1
182
# def nested_scope():
183
# a = 2
0 commit comments