diff options
author | Christian Heimes <christian@python.org> | 2022-08-16 18:20:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 18:20:15 (GMT) |
commit | 48174fa0b949d6b1d0c1f074e7d4e47793759a43 (patch) | |
tree | 0a226307f02413be0a6378aaf58a378004b5a3fb /Doc/library/errno.rst | |
parent | f215d7cac9a6f9b51ba864e4252686dee4e45d64 (diff) | |
download | cpython-48174fa0b949d6b1d0c1f074e7d4e47793759a43.zip cpython-48174fa0b949d6b1d0c1f074e7d4e47793759a43.tar.gz cpython-48174fa0b949d6b1d0c1f074e7d4e47793759a43.tar.bz2 |
gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)
- On WASI `ENOTCAPABLE` is now mapped to `PermissionError`.
- The `errno` modules exposes the new error number.
- `getpath.py` now ignores `PermissionError` when it cannot open landmark
files `pybuilddir.txt` and `pyenv.cfg`.
Diffstat (limited to 'Doc/library/errno.rst')
-rw-r--r-- | Doc/library/errno.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/errno.rst b/Doc/library/errno.rst index 035340e..da4e964 100644 --- a/Doc/library/errno.rst +++ b/Doc/library/errno.rst @@ -657,3 +657,12 @@ defined by the module. The specific list of defined symbols is available as Interface output queue is full .. versionadded:: 3.11 + +.. data:: ENOTCAPABLE + + Capabilities insufficient. This error is mapped to the exception + :exc:`PermissionError`. + + .. availability:: WASI + + .. versionadded:: 3.11.1 |