Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
def
read(_socket):
7
f = _socket.makefile(
'rb'
, buffer_size )
8
data = pickle.load(f)
9
f.close()
10
return
data
Callers
2
recipe-115419.py
File · 0.85
read
Method · 0.85
Calls
3
makefile
Method · 0.45
load
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected