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

Function read_floatnl

Lib/pickletools.py:813–820  ·  view source on GitHub ↗

r""" >>> import io >>> read_floatnl(io.BytesIO(b"-1.25\n6")) -1.25

(f)

Source from the content-addressed store, hash-verified

811
812
813def read_floatnl(f):
814 r"""
815 >>> import io
816 >>> read_floatnl(io.BytesIO(b"-1.25\n6"))
817 -1.25
818 """
819 s = read_stringnl(f, decode=False, stripquotes=False)
820 return float(s)
821
822floatnl = ArgumentDescriptor(
823 name='floatnl',

Callers

nothing calls this directly

Calls 1

read_stringnlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…