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

Function read_decimalnl_long

Lib/pickletools.py:772–786  ·  view source on GitHub ↗

r""" >>> import io >>> read_decimalnl_long(io.BytesIO(b"1234L\n56")) 1234 >>> read_decimalnl_long(io.BytesIO(b"123456789012345678901234L\n6")) 123456789012345678901234

(f)

Source from the content-addressed store, hash-verified

770 return int(s)
771
772def read_decimalnl_long(f):
773 r"""
774 >>> import io
775
776 >>> read_decimalnl_long(io.BytesIO(b"1234L\n56"))
777 1234
778
779 >>> read_decimalnl_long(io.BytesIO(b"123456789012345678901234L\n6"))
780 123456789012345678901234
781 """
782
783 s = read_stringnl(f, decode=False, stripquotes=False)
784 if s[-1:] == b'L':
785 s = s[:-1]
786 return int(s)
787
788
789decimalnl_short = ArgumentDescriptor(

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…