Skip to content

Commit

Permalink
Use footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Nov 11, 2024
1 parent fd204d5 commit 86993c2
Showing 1 changed file with 37 additions and 39 deletions.
76 changes: 37 additions & 39 deletions Doc/library/errno.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ defined by the module. The specific list of defined symbols is available as
- Description

* - .. data:: EPERM
- Operation not permitted. This error is mapped to the exception
:exc:`PermissionError`.
- Operation not permitted. [#PermissionError]_

* - .. data:: ENOENT
- No such file or directory. This error is mapped to the exception
:exc:`FileNotFoundError`.
- No such file or directory. [#FileNotFoundError]_

* - .. data:: ESRCH
- No such process. This error is mapped to the exception
:exc:`ProcessLookupError`.
- No such process. [#ProcessLookupError]_

* - .. data:: EINTR
- Interrupted system call. This error is mapped to the exception
:exc:`InterruptedError`.
- Interrupted system call. [#InterruptedError]_

* - .. data:: EIO
- I/O error
Expand All @@ -63,18 +59,16 @@ defined by the module. The specific list of defined symbols is available as
- Bad file number

* - .. data:: ECHILD
- No child processes. This error is mapped to the exception
:exc:`ChildProcessError`.
- No child processes. [#ChildProcessError]_

* - .. data:: EAGAIN
- Try again. This error is mapped to the exception :exc:`BlockingIOError`.
- Try again. [#BlockingIOError]_

* - .. data:: ENOMEM
- Out of memory

* - .. data:: EACCES
- Permission denied. This error is mapped to the exception
:exc:`PermissionError`.
- Permission denied. [#PermissionError]_

* - .. data:: EFAULT
- Bad address
Expand All @@ -86,8 +80,7 @@ defined by the module. The specific list of defined symbols is available as
- Device or resource busy

* - .. data:: EEXIST
- File exists. This error is mapped to the exception
:exc:`FileExistsError`.
- File exists. [#FileExistsError]_

* - .. data:: EXDEV
- Cross-device link
Expand All @@ -96,12 +89,10 @@ defined by the module. The specific list of defined symbols is available as
- No such device

* - .. data:: ENOTDIR
- Not a directory. This error is mapped to the exception
:exc:`NotADirectoryError`.
- Not a directory. [#NotADirectoryError]_

* - .. data:: EISDIR
- Is a directory. This error is mapped to the exception
:exc:`IsADirectoryError`.
- Is a directory. [#IsADirectoryError]_

* - .. data:: EINVAL
- Invalid argument
Expand Down Expand Up @@ -134,8 +125,7 @@ defined by the module. The specific list of defined symbols is available as
- Too many links

* - .. data:: EPIPE
- Broken pipe. This error is mapped to the exception
:exc:`BrokenPipeError`.
- Broken pipe. [#BrokenPipeError]_

* - .. data:: EDOM
- Math argument out of domain of func
Expand All @@ -162,8 +152,7 @@ defined by the module. The specific list of defined symbols is available as
- Too many symbolic links encountered

* - .. data:: EWOULDBLOCK
- Operation would block. This error is mapped to the exception
:exc:`BlockingIOError`.
- Operation would block. [#BlockingIOError]_

* - .. data:: ENOMSG
- No message of desired type
Expand Down Expand Up @@ -352,12 +341,10 @@ defined by the module. The specific list of defined symbols is available as
- Network dropped connection because of reset

* - .. data:: ECONNABORTED
- Software caused connection abort. This error is mapped to the
exception :exc:`ConnectionAbortedError`.
- Software caused connection abort. [#ConnectionAbortedError]_

* - .. data:: ECONNRESET
- Connection reset by peer. This error is mapped to the exception
:exc:`ConnectionResetError`.
- Connection reset by peer. [#ConnectionResetError]_

* - .. data:: ENOBUFS
- No buffer space available
Expand All @@ -369,19 +356,16 @@ defined by the module. The specific list of defined symbols is available as
- Transport endpoint is not connected

* - .. data:: ESHUTDOWN
- Cannot send after transport endpoint shutdown. This error is mapped
to the exception :exc:`BrokenPipeError`.
- Cannot send after transport endpoint shutdown. [#BrokenPipeError]_

* - .. data:: ETOOMANYREFS
- Too many references: cannot splice

* - .. data:: ETIMEDOUT
- Connection timed out. This error is mapped to the exception
:exc:`TimeoutError`.
- Connection timed out. [#TimeoutError]_

* - .. data:: ECONNREFUSED
- Connection refused. This error is mapped to the exception
:exc:`ConnectionRefusedError`.
- Connection refused. [#ConnectionRefusedError]_

* - .. data:: EHOSTDOWN
- Host is down
Expand All @@ -390,12 +374,10 @@ defined by the module. The specific list of defined symbols is available as
- No route to host

* - .. data:: EALREADY
- Operation already in progress. This error is mapped to the
exception :exc:`BlockingIOError`.
- Operation already in progress. [#BlockingIOError]_

* - .. data:: EINPROGRESS
- Operation now in progress. This error is mapped to the exception
:exc:`BlockingIOError`.
- Operation now in progress. [#BlockingIOError]_

* - .. data:: ESTALE
- Stale NFS file handle
Expand All @@ -422,8 +404,7 @@ defined by the module. The specific list of defined symbols is available as
- Interface output queue is full

* - .. data:: ENOTCAPABLE
- Capabilities insufficient. This error is mapped to the exception
:exc:`PermissionError`.
- Capabilities insufficient. [#PermissionError]_

* - .. data:: ECANCELED
- Operation canceled
Expand All @@ -448,3 +429,20 @@ defined by the module. The specific list of defined symbols is available as
.. versionadded:: 3.11.1

* :data:`errno.ENOTCAPABLE`

.. rubric:: Footnotes

.. [#BlockingIOError] This error is mapped to the exception :exc:`BlockingIOError`.
.. [#BrokenPipeError] This error is mapped to the exception :exc:`BrokenPipeError`.
.. [#ChildProcessError] This error is mapped to the exception :exc:`ChildProcessError`.
.. [#ConnectionAbortedError] This error is mapped to the exception :exc:`ConnectionAbortedError`.
.. [#ConnectionRefusedError] This error is mapped to the exception :exc:`ConnectionRefusedError`.
.. [#ConnectionResetError] This error is mapped to the exception :exc:`ConnectionResetError`.
.. [#FileExistsError] This error is mapped to the exception :exc:`FileExistsError`.
.. [#FileNotFoundError] This error is mapped to the exception :exc:`FileNotFoundError`.
.. [#InterruptedError] This error is mapped to the exception :exc:`InterruptedError`.
.. [#IsADirectoryError] This error is mapped to the exception :exc:`IsADirectoryError`.
.. [#NotADirectoryError] This error is mapped to the exception :exc:`NotADirectoryError`.
.. [#PermissionError] This error is mapped to the exception :exc:`PermissionError`.
.. [#ProcessLookupError] This error is mapped to the exception :exc:`ProcessLookupError`.
.. [#TimeoutError] This error is mapped to the exception :exc:`TimeoutError`.

0 comments on commit 86993c2

Please sign in to comment.