Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ nested_scope
Function
nested_scope
extra_tests/snippets/syntax_class.py:200–208 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
198
# and still finds the a from the class scope.
199
a = 1
200
def
nested_scope():
201
a = 2
202
class
A:
203
a = 3
204
def
b():
205
assert a == 2
206
b()
207
assert a == 3
208
A.b()
209
nested_scope()
210
211
Callers
1
syntax_class.py
File · 0.85
Calls
1
b
Method · 0.45
Tested by
no test coverage detected