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

Method read

Lib/zipfile/__init__.py:1678–1682  ·  view source on GitHub ↗

Return file bytes for name. 'pwd' is the password to decrypt encrypted files.

(self, name, pwd=None)

Source from the content-addressed store, hash-verified

1676 self._didModify = True
1677
1678 def read(self, name, pwd=None):
1679 """Return file bytes for name. 'pwd' is the password to decrypt
1680 encrypted files."""
1681 with self.open(name, "r", pwd) as fp:
1682 return fp.read()
1683
1684 def open(self, name, mode="r", pwd=None, *, force_zip64=False):
1685 """Return file-like object for 'name'.

Callers 15

test_too_many_filesMethod · 0.95
_check_zipfileFunction · 0.45
_EndRecData64Function · 0.45
_EndRecDataFunction · 0.45
readMethod · 0.45
_init_decrypterMethod · 0.45
_read2Method · 0.45
testzipMethod · 0.45
openMethod · 0.45
read_textMethod · 0.45
read_bytesMethod · 0.45

Calls 1

openMethod · 0.95

Tested by 2

test_too_many_filesMethod · 0.76