MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / Int64

Class Int64

bson/int64.py:21–39  ·  view source on GitHub ↗

Representation of the BSON int64 type. This is necessary because every integral number is an :class:`int` in Python 3. Small integral numbers are encoded to BSON int32 by default, but Int64 numbers will always be encoded to BSON int64. :param value: the numeric value to represent

Source from the content-addressed store, hash-verified

19
20
21class Int64(int):
22 """Representation of the BSON int64 type.
23
24 This is necessary because every integral number is an :class:`int` in
25 Python 3. Small integral numbers are encoded to BSON int32 by default,
26 but Int64 numbers will always be encoded to BSON int64.
27
28 :param value: the numeric value to represent
29 """
30
31 __slots__ = ()
32
33 _type_marker = 18
34
35 def __getstate__(self) -> Any:
36 return {}
37
38 def __setstate__(self, state: Any) -> None:
39 pass

Callers 15

_flushMethod · 0.90
_flushMethod · 0.90
test_numberlongMethod · 0.90
test_get_more_failureMethod · 0.90
test_int64_picklingMethod · 0.90
test_longMethod · 0.90
transform_pythonMethod · 0.90

Calls

no outgoing calls