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

Method __init__

Lib/zipfile/_path/__init__.py:312–323  ·  view source on GitHub ↗

Construct a Path from a ZipFile or filename. Note: When the source is an existing ZipFile object, its type (__class__) will be mutated to a specialized type. If the caller wishes to retain the original type, the caller should either create a separate

(self, root, at="")

Source from the content-addressed store, hash-verified

310 __repr = "{self.__class__.__name__}({self.root.filename!r}, {self.at!r})"
311
312 def __init__(self, root, at=""):
313 """
314 Construct a Path from a ZipFile or filename.
315
316 Note: When the source is an existing ZipFile object,
317 its type (__class__) will be mutated to a
318 specialized type. If the caller wishes to retain the
319 original type, the caller should either create a
320 separate ZipFile object or pass a filename.
321 """
322 self.root = FastLookup.make(root)
323 self.at = at
324
325 def __eq__(self, other):
326 """

Callers 2

__init__Method · 0.45
__setstate__Method · 0.45

Calls 1

makeMethod · 0.45

Tested by

no test coverage detected