mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-126585: Add EHWPOISON error code (#126586)
This commit is contained in:
parent
35d37d6592
commit
84ff1313d0
4 changed files with 16 additions and 0 deletions
|
@ -613,6 +613,13 @@ defined by the module. The specific list of defined symbols is available as
|
||||||
No route to host
|
No route to host
|
||||||
|
|
||||||
|
|
||||||
|
.. data:: EHWPOISON
|
||||||
|
|
||||||
|
Memory page has hardware error.
|
||||||
|
|
||||||
|
.. versionadded:: next
|
||||||
|
|
||||||
|
|
||||||
.. data:: EALREADY
|
.. data:: EALREADY
|
||||||
|
|
||||||
Operation already in progress. This error is mapped to the
|
Operation already in progress. This error is mapped to the
|
||||||
|
|
|
@ -345,6 +345,11 @@ dis
|
||||||
This feature is also exposed via :option:`dis --show-positions`.
|
This feature is also exposed via :option:`dis --show-positions`.
|
||||||
(Contributed by Bénédikt Tran in :gh:`123165`.)
|
(Contributed by Bénédikt Tran in :gh:`123165`.)
|
||||||
|
|
||||||
|
errno
|
||||||
|
-----
|
||||||
|
|
||||||
|
* Add :data:`errno.EHWPOISON` error code.
|
||||||
|
(Contributed by James Roy in :gh:`126585`.)
|
||||||
|
|
||||||
fractions
|
fractions
|
||||||
---------
|
---------
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Add :data:`~errno.EHWPOISON` error code to :mod:`errno`.
|
|
@ -845,6 +845,9 @@ errno_exec(PyObject *module)
|
||||||
#ifdef ENOKEY
|
#ifdef ENOKEY
|
||||||
add_errcode("ENOKEY", ENOKEY, "Required key not available");
|
add_errcode("ENOKEY", ENOKEY, "Required key not available");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef EHWPOISON
|
||||||
|
add_errcode("EHWPOISON", EHWPOISON, "Memory page has hardware error");
|
||||||
|
#endif
|
||||||
#ifdef EKEYEXPIRED
|
#ifdef EKEYEXPIRED
|
||||||
add_errcode("EKEYEXPIRED", EKEYEXPIRED, "Key has expired");
|
add_errcode("EKEYEXPIRED", EKEYEXPIRED, "Key has expired");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue