We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b32baeb commit 2c48613Copy full SHA for 2c48613
examples/binary_payload.py
@@ -9,6 +9,6 @@
9
assert msg.data == b'\xeb/\x11\x8f\x7f\xf1'
10
11
# Convert the raw bytes to number
12
-number = int.from_bytes(msg.data)
+number = int.from_bytes(msg.data, byteorder="big")
13
14
assert bin(number)[2:] == "111010110010111100010001100011110111111111110001"
0 commit comments