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

Method save_bool

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

Source from the content-addressed store, hash-verified

797 dispatch[type(None)] = save_none
798
799 def save_bool(self, obj):
800 if self.proto >= 2:
801 self.write(NEWTRUE if obj else NEWFALSE)
802 else:
803 self.write(TRUE if obj else FALSE)
804 dispatch[bool] = save_bool
805
806 def save_long(self, obj):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected