4 ms·
Obviously, these are just for BSD, but for Python 3, the standard library provides enumerations of error codes and provides a dictionary to map to the underlyin
by alexfromapex 5y ago
Obviously, these are just for BSD, but for Python 3, the standard library provides enumerations of error codes and provides a dictionary to map to the underlying system message: https://docs.python.org/3/library/errno.html https://docs.python.org/3/library/errno.html
- michaelhoffman 5y agoThe sysexits are constants (such as `os.EX_OK`) are in the `os` module. But beware, they are not available on some platforms. https://docs.python.org/3/library/os.html#os._exit https://docs.python.org/3/library/os.html#os._exit
- loeg 5y agoThose are a different set of error codes. Also, they have been present in Python long before 3.