Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ f
Method
f
Lib/test/test_threading_local.py:68–71 ·
view source on GitHub ↗
(i)
Source
from the content-addressed store, hash-verified
66
local = Local()
67
68
def
f(i):
69
local.x = i
70
# Simply check that the variable is correctly set
71
self.assertEqual(local.x, i)
72
73
with
threading_helper.start_threads(threading.Thread(target=f, args=(i,))
74
for
i in range(10)):
Callers
nothing calls this directly
Calls
7
all
Function · 0.85
hasattr
Function · 0.85
Local
Class · 0.70
assertEqual
Method · 0.45
append
Method · 0.45
set
Method · 0.45
wait
Method · 0.45
Tested by
no test coverage detected