usys – System specific functions

This module provides a subset of the standard Python sys module.

Note

This module is not available on the BOOST Move hub.

stdin: uio.FileIO = <uio.FileIO object>

Stream object that receives input from a connected terminal, if any.

Writing may modify newline characters. Use usys.stdin.buffer instead if this is undesirable.

Also see micropython.kbd_intr() to disable KeyboardInterrupt if you are passing binary data via stdin.

stdout: uio.FileIO = <uio.FileIO object>

Stream object that sends output to a connected terminal, if any.

Reading may modify newline characters. Use usys.stdout.buffer instead if this is undesirable.

stderr: uio.FileIO = <uio.FileIO object>

Alias for stdout.