MCPcopy Create free account
hub / github.com/ActiveState/code / read

Function read

recipes/Python/577667_Pickle_tofrom_socket/recipe-577667.py:6–10  ·  view source on GitHub ↗
(_socket)

Source from the content-addressed store, hash-verified

4 f.close()
5
6def read(_socket):
7 f = _socket.makefile('rb', buffer_size )
8 data = pickle.load(f)
9 f.close()
10 return data

Callers 2

recipe-115419.pyFile · 0.85
readMethod · 0.85

Calls 3

makefileMethod · 0.45
loadMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected