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

Method g

Lib/test/test_inspect/test_inspect.py:2069–2070  ·  view source on GitHub ↗
(local_ref)

Source from the content-addressed store, hash-verified

2067 # Basic test of the 4 different resolution mechanisms
2068 def f(nonlocal_ref):
2069 def g(local_ref):
2070 print(local_ref, nonlocal_ref, _global_ref, unbound_ref)
2071 return g
2072 _arg = object()
2073 nonlocal_vars = {"nonlocal_ref": _arg}

Callers

nothing calls this directly

Calls 2

fFunction · 0.70
leFunction · 0.50

Tested by

no test coverage detected