Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ lookup
Function
lookup
Lib/shutil.py:430–431 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
428
if
follow:
429
# use the real function if it exists
430
def
lookup(name):
431
return
getattr(os, name, _nop)
432
else
:
433
# use the real function only if it exists
434
# *and* it supports follow_symlinks
Callers
11
_getdefaultlocale
Function · 0.70
copystat
Function · 0.70
open
Function · 0.70
EncodedFile
Function · 0.70
getencoder
Function · 0.70
getdecoder
Function · 0.70
getincrementalencoder
Function · 0.70
getincrementaldecoder
Function · 0.70
getreader
Function · 0.70
getwriter
Function · 0.70
test_dawg_direct_simple
Method · 0.50
Calls
1
getattr
Function · 0.85
Tested by
1
test_dawg_direct_simple
Method · 0.40