2017-07-03 18:05:08 -04:00
|
|
|
# Skip if long ints are not supported.
|
2017-10-25 01:31:16 -04:00
|
|
|
import skip_if
|
|
|
|
skip_if.no_bigint()
|
2017-07-03 18:05:08 -04:00
|
|
|
|
|
|
|
print((2**64).to_bytes(9, "little"))
|
2020-02-14 15:12:20 -05:00
|
|
|
print((-2**64).to_bytes(9, "little", signed=True))
|
2017-07-03 18:05:08 -04:00
|
|
|
print(int.from_bytes(b"\x00\x01\0\0\0\0\0\0", "little"))
|
|
|
|
print(int.from_bytes(b"\x01\0\0\0\0\0\0\0", "little"))
|
|
|
|
print(int.from_bytes(b"\x00\x01\0\0\0\0\0\0", "little"))
|