Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
dump
Function · 0.45
_synthesize
Function · 0.45
__init__
Method · 0.45
_find_appropriate_compiler
Function · 0.45
getmodulename
Function · 0.45
compile_file
Function · 0.45
importfile
Function · 0.45
cli
Function · 0.45
copy
Function · 0.45
copy2
Function · 0.45
_basename
Function · 0.45
testfile
Function · 0.45
Calls
1
rpartition
Method · 0.45
Tested by
no test coverage detected