Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _temp_file
Function
_temp_file
Lib/importlib/resources/_common.py:114–115 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
112
113
114
def
_temp_file(path):
115
return
_tempfile(path.read_bytes, suffix=path.name)
116
117
118
def
_is_present_dir(path: Traversable) -> bool:
Callers
1
as_file
Function · 0.85
Calls
1
_tempfile
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…