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

Method read

Lib/pickle.py:284–295  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

282 return n
283
284 def read(self, n):
285 if self.current_frame:
286 data = self.current_frame.read(n)
287 if not data and n != 0:
288 self.current_frame = None
289 return self.file_read(n)
290 if len(data) < n:
291 raise UnpicklingError(
292 "pickle exhausted before end of frame")
293 return data
294 else:
295 return self._chunked_file_read(n)
296
297 def readline(self):
298 if self.current_frame:

Callers 15

load_frameMethod · 0.45
load_protoMethod · 0.45
load_frameMethod · 0.45
load_binintMethod · 0.45
load_binint1Method · 0.45
load_binint2Method · 0.45
load_long1Method · 0.45
load_long4Method · 0.45
load_binfloatMethod · 0.45
load_binstringMethod · 0.45
load_binbytesMethod · 0.45
load_binunicodeMethod · 0.45

Calls 2

_chunked_file_readMethod · 0.95
UnpicklingErrorClass · 0.85

Tested by

no test coverage detected