MCPcopy Index your code
hub / github.com/python/cpython / make_nonlocal_reader

Function make_nonlocal_reader

Tools/scripts/var_access_benchmark.py:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 v_local; v_local; v_local; v_local; v_local
34
35def make_nonlocal_reader():
36 v_nonlocal = 1
37 def inner(trials=trials):
38 for t in trials:
39 v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal
40 v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal
41 v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal
42 v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal
43 v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal; v_nonlocal
44 inner.__name__ = 'read_nonlocal'
45 return inner
46
47read_nonlocal = make_nonlocal_reader()
48

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…