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

Method save_list

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

Source from the content-addressed store, hash-verified

1022 dispatch[tuple] = save_tuple
1023
1024 def save_list(self, obj):
1025 if self.bin:
1026 self.write(EMPTY_LIST)
1027 else: # proto 0 -- can't use EMPTY_LIST
1028 self.write(MARK + LIST)
1029
1030 self.memoize(obj)
1031 self._batch_appends(obj, obj)
1032
1033 dispatch[list] = save_list
1034

Callers

nothing calls this directly

Calls 3

memoizeMethod · 0.95
_batch_appendsMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected