Though this MicroPython-based library is available for use in CircuitPython, its functionality may change in the future, perhaps significantly. As CircuitPython continues to develop, it may be changed to comply more closely with the corresponding standard Python library. You may need to change your code later if you rely on any non-standard functionality it currently provides.
This module implements a subset of the corresponding
as described below. For more information, refer to the original
This module provides access to symbolic error codes for
EEXIST, EAGAIN, etc.
Error codes, based on ANSI C/POSIX standard. All error codes start with “E”. Errors are usually accessible as
excis an instance of
OSError. Usage example:
try: os.mkdir("my_dir") except OSError as exc: if exc.args == uerrno.EEXIST: print("Directory already exists")
Dictionary mapping numeric error codes to strings with symbolic error code (see above):
>>> print(uerrno.errorcode[uerrno.EEXIST]) EEXIST