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

Method basename

Lib/test/test_getpath.py:986–987  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

984 return self.joinpath("C:\\Absolute", path)
985
986 def basename(self, path):
987 return path.rpartition("\\")[2]
988
989 def dirname(self, path):
990 name = path.rstrip("\\").rpartition("\\")[0]

Callers 15

dumpFunction · 0.45
_synthesizeFunction · 0.45
__init__Method · 0.45
getmodulenameFunction · 0.45
compile_fileFunction · 0.45
importfileFunction · 0.45
cliFunction · 0.45
copyFunction · 0.45
copy2Function · 0.45
_basenameFunction · 0.45
testfileFunction · 0.45

Calls 1

rpartitionMethod · 0.45

Tested by

no test coverage detected