@@ -2,21 +2,25 @@ \section{Standard Module \sectcode{errno}}
22\label {module-errno }
33\stmodindex {errno}
44
5- \setindexsubitem {(in module errno)}
65
76This module makes available standard errno system symbols.
87The value of each symbol is the corresponding integer value.
98The names and descriptions are borrowed from \file {linux/include/errno.h},
10- which should be pretty all-inclusive. Of the following list, symbols
11- that are not used on the current platform are not defined by the
12- module.
9+ which should be pretty all-inclusive.
1310
14- The module also defines the dictionary variable \code {errorcode} which
15- maps numeric error codes back to their symbol names, so that e.g.
16- \samp {errno.errorcode[errno.EPERM] == 'EPERM' }. To translate a
17- numeric error code to an error message, use \function {os.strerror()}.
11+ \begin {datadesc }{errorcode}
12+ Dictionary providing a mapping from the errno value to the string
13+ name in the underlying system. For instance,
14+ \code {errno.errorcode[errno.EPERM]} maps to \code {'EPERM'}.
15+ \end {datadesc }
16+
17+ To translate a numeric error code to an error message, use
18+ \function {os.strerror()}.
19+
20+ Of the following list, symbols that are not used on the current
21+ platform are not defined by the module. Symbols available can
22+ include:
1823
19- Symbols available can include:
2024\begin {datadesc }{EPERM} Operation not permitted \end {datadesc }
2125\begin {datadesc }{ENOENT} No such file or directory \end {datadesc }
2226\begin {datadesc }{ESRCH} No such process \end {datadesc }
0 commit comments