Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ name
Method
name
Lib/pathlib/types.py:119–121 ·
view source on GitHub ↗
The final path component, if any.
(self)
Source
from the content-addressed store, hash-verified
117
118
@property
119
def
name(self):
120
""
"The final path component, if any."
""
121
return
self.parser.split(vfspath(self))[1]
122
123
@property
124
def
suffix(self):
Callers
nothing calls this directly
Calls
2
vfspath
Function · 0.90
split
Method · 0.45
Tested by
no test coverage detected