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

Method save_float

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

Source from the content-addressed store, hash-verified

851 dispatch[int] = save_long
852
853 def save_float(self, obj):
854 if self.bin:
855 self.write(BINFLOAT + pack('>d', obj))
856 else:
857 self.write(FLOAT + repr(obj).encode("ascii") + b'\n')
858 dispatch[float] = save_float
859
860 def _save_bytes_no_memo(self, obj):

Callers

nothing calls this directly

Calls 3

packFunction · 0.85
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected