Print exception with a traceback to a file-like object file (or
sys.stdout by default).

Difference to CPython

This is simplified version of a function which appears in the
traceback module in CPython. Unlike traceback.print_exception(),
this function takes just exception value instead of exception type,
exception value, and traceback object; file argument should be
positional; further arguments are not supported. CPython-compatible
traceback module can be found in micropython-lib.

Maximum value which a native integer type can hold on the current platform,
or maximum value representable by MicroPython integer type, if it’s smaller
than platform max value (that is the case for MicroPython ports without
long int support).

This attribute is useful for detecting “bitness” of a platform (32-bit vs
64-bit, etc.). It’s recommended to not compare this attribute to some
value directly, but instead count number of bits in it:

The platform that MicroPython is running on. For OS/RTOS ports, this is
usually an identifier of the OS, e.g. "linux". For baremetal ports it
is an identifier of a board, e.g. "pyboard" for the original MicroPython
reference board. It thus can be used to distinguish one board from another.
If you need to check whether your program runs on MicroPython (vs other
Python implementation), use sys.implementation instead.