Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _exists
Function
_exists
Lib/tempfile.py:76–82 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
74
75
76
def
_exists(fn):
77
try
:
78
_os.lstat(fn)
79
except
OSError:
80
return
False
81
else
:
82
return
True
83
84
85
def
_infer_return_type(*args):
Callers
1
mktemp
Function · 0.70
Calls
1
lstat
Method · 0.80
Tested by
no test coverage detected