Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ parent
Method
parent
Lib/zipfile/_path/__init__.py:449–455 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
447
448
@property
449
def
parent(self):
450
if
not self.at:
451
return
self.filename.parent
452
parent_at = posixpath.dirname(self.at.rstrip(
'/'
))
453
if
parent_at:
454
parent_at +=
'/'
455
return
self._next(parent_at)
Callers
nothing calls this directly
Calls
3
_next
Method · 0.95
dirname
Method · 0.45
rstrip
Method · 0.45
Tested by
no test coverage detected