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

Method __init__

Lib/test/test_pathlib/support/zip_path.py:212–216  ·  view source on GitHub ↗
(self, zip_file)

Source from the content-addressed store, hash-verified

210 __slots__ = ('tree', '_items')
211
212 def __init__(self, zip_file):
213 self.tree = ZipPathInfo(zip_file)
214 self._items = []
215 for item in zip_file.filelist:
216 self.append(item)
217
218 def __len__(self):
219 return len(self._items)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
ZipPathInfoClass · 0.85

Tested by

no test coverage detected