MCPcopy 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.
199a = 1
200def 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()
209nested_scope()
210
211

Callers 1

syntax_class.pyFile · 0.85

Calls 1

bMethod · 0.45

Tested by

no test coverage detected