MCPcopy Index your code
hub / github.com/RustPython/RustPython / save_dict

Method save_dict

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

Source from the content-addressed store, hash-verified

1055 start += batch_len
1056
1057 def save_dict(self, obj):
1058 if self.bin:
1059 self.write(EMPTY_DICT)
1060 else: # proto 0 -- can't use EMPTY_DICT
1061 self.write(MARK + DICT)
1062
1063 self.memoize(obj)
1064 self._batch_setitems(obj.items(), obj)
1065
1066 dispatch[dict] = save_dict
1067

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