Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ hassuffix
Method
hassuffix
Lib/test/test_getpath.py:995–996 ·
view source on GitHub ↗
(self, path, suffix)
Source
from the content-addressed store, hash-verified
993
return
name
994
995
def
hassuffix(self, path, suffix):
996
return
path.casefold().endswith(suffix.casefold())
997
998
def
isabs(self, path):
999
return
path[1:3] ==
":\\"
Callers
nothing calls this directly
Calls
2
casefold
Method · 0.80
endswith
Method · 0.45
Tested by
no test coverage detected