MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / save_dict

Method save_dict

tools/python-3.11.9-amd64/Lib/pickle.py:965–972  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

963 return
964
965 def save_dict(self, obj):
966 if self.bin:
967 self.write(EMPTY_DICT)
968 else: # proto 0 -- can't use EMPTY_DICT
969 self.write(MARK + DICT)
970
971 self.memoize(obj)
972 self._batch_setitems(obj.items())
973
974 dispatch[dict] = save_dict
975 if PyStringMap is not None:

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