MCPcopy
hub / github.com/pika/pika / long

Class long

pika/compat.py:53–63  ·  view source on GitHub ↗

A marker class that signifies that the integer value should be serialized as `l` instead of `I`

Source from the content-addressed store, hash-verified

51
52
53class long(int):
54 """
55 A marker class that signifies that the integer value should be
56 serialized as `l` instead of `I`
57 """
58
59 def __str__(self) -> str:
60 return str(int(self))
61
62 def __repr__(self) -> str:
63 return str(self) + 'L'
64
65
66def as_bytes(value: Union[str, bytes]) -> bytes:

Callers 7

encode_valueFunction · 0.90
decode_valueFunction · 0.90
test_headers_reprMethod · 0.90
DataTestsClass · 0.90
test_long_reprMethod · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…