Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ warm_caches
Function
warm_caches
Lib/test/libregrtest/refleak.py:276–284 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
274
275
276
def
warm_caches() -> None:
277
# char cache
278
s = bytes(range(256))
279
for
i in range(256):
280
s[i:i+1]
281
# unicode cache
282
[chr(i)
for
i in range(256)]
283
# int cache
284
list(range(-5, 257))
Callers
1
runtest_refleak
Function · 0.85
Calls
2
chr
Function · 0.85
list
Class · 0.85
Tested by
no test coverage detected