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

Function realpath

Lib/ntpath.py:560–561  ·  view source on GitHub ↗
(path, /, *, strict=False)

Source from the content-addressed store, hash-verified

558except ImportError:
559 # realpath is a no-op on systems without _getfinalpathname support.
560 def realpath(path, /, *, strict=False):
561 return abspath(path)
562else:
563 def _readlink_deep(path, ignored_error=OSError):
564 # These error codes indicate that we should stop reading links and

Callers 4

_safe_realpathFunction · 0.90
checkMethod · 0.50
getpath.pyFile · 0.50

Calls 10

normpathFunction · 0.90
strFunction · 0.85
isdirFunction · 0.85
abspathFunction · 0.70
normcaseFunction · 0.70
isabsFunction · 0.70
joinFunction · 0.70
splitFunction · 0.70
startswithMethod · 0.45

Tested by 2

checkMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…