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

Method save_float

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

Source from the content-addressed store, hash-verified

780 dispatch[int] = save_long
781
782 def save_float(self, obj):
783 if self.bin:
784 self.write(BINFLOAT + pack('>d', obj))
785 else:
786 self.write(FLOAT + repr(obj).encode("ascii") + b'\n')
787 dispatch[float] = save_float
788
789 def save_bytes(self, obj):

Callers

nothing calls this directly

Calls 3

packFunction · 0.85
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected