Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ set_pickle_data
Method
set_pickle_data
Lib/test/test_pickle.py:772–774 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
770
return
dedent(string).strip()
771
772
def
set_pickle_data(self, data):
773
with
open(self.filename,
'wb'
)
as
f:
774
pickle.dump(data, f)
775
776
def
invoke_pickle(self, *flags):
777
output = io.StringIO()
Callers
1
test_invocation
Method · 0.95
Calls
2
open
Function · 0.50
dump
Method · 0.45
Tested by
no test coverage detected