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

Method save_dict

Lib/pickle.py:1073–1080  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

1071 start += batch_len
1072
1073 def save_dict(self, obj):
1074 if self.bin:
1075 self.write(EMPTY_DICT)
1076 else: # proto 0 -- can't use EMPTY_DICT
1077 self.write(MARK + DICT)
1078
1079 self.memoize(obj)
1080 self._batch_setitems(obj.items(), obj)
1081
1082 dispatch[dict] = save_dict
1083

Callers

nothing calls this directly

Calls 4

memoizeMethod · 0.95
_batch_setitemsMethod · 0.95
writeMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected