Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ temporary_filename
Function
temporary_filename
Lib/test/test_faulthandler.py:51–56 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
49
50
@contextmanager
51
def
temporary_filename():
52
filename = tempfile.mktemp()
53
try
:
54
yield
filename
55
finally:
56
os_helper.unlink(filename)
57
58
59
ADDRESS_EXPR =
"0x[0-9a-f]+"
Callers
5
test_enable_file
Method · 0.85
test_dump_traceback_file
Method · 0.85
test_dump_traceback_threads_file
Method · 0.85
test_dump_traceback_later_file
Method · 0.85
test_register_file
Method · 0.85
Calls
2
mktemp
Method · 0.80
unlink
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…