MCPcopy Index your code
hub / github.com/python/cpython / opener

Function opener

Lib/tempfile.py:598–601  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

596
597 name = None
598 def opener(*args):
599 nonlocal name
600 fd, name = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
601 return fd
602 try:
603 file = _io.open(dir, mode, buffering=buffering,
604 newline=newline, encoding=encoding, errors=errors,

Callers 2

__init__Method · 0.85
test_is_block_openerMethod · 0.85

Calls 4

_mkstemp_innerFunction · 0.85
openMethod · 0.45
unlinkMethod · 0.45
closeMethod · 0.45

Tested by 1

test_is_block_openerMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…