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

Method save_float

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

Source from the content-addressed store, hash-verified

835 dispatch[int] = save_long
836
837 def save_float(self, obj):
838 if self.bin:
839 self.write(BINFLOAT + pack('>d', obj))
840 else:
841 self.write(FLOAT + repr(obj).encode("ascii") + b'\n')
842 dispatch[float] = save_float
843
844 def _save_bytes_no_memo(self, obj):

Callers

nothing calls this directly

Calls 4

packFunction · 0.90
reprFunction · 0.85
writeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected