MCPcopy 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
51def temporary_filename():
52 filename = tempfile.mktemp()
53 try:
54 yield filename
55 finally:
56 os_helper.unlink(filename)
57
58
59ADDRESS_EXPR = "0x[0-9a-f]+"

Calls 2

mktempMethod · 0.80
unlinkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…