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

Method save_bool

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

Source from the content-addressed store, hash-verified

742 dispatch[type(None)] = save_none
743
744 def save_bool(self, obj):
745 if self.proto >= 2:
746 self.write(NEWTRUE if obj else NEWFALSE)
747 else:
748 self.write(TRUE if obj else FALSE)
749 dispatch[bool] = save_bool
750
751 def save_long(self, obj):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected