MCPcopy 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
276def 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_refleakFunction · 0.85

Calls 2

chrFunction · 0.85
listClass · 0.85

Tested by

no test coverage detected