circuitpython/tests/basics/int_bytes_notimpl.py

5 lines
82 B
Python

try:
print((10).to_bytes(1, "big"))
except Exception as e:
print(type(e))