uerrno: Document alongside OSError.

These are meant to be used together, so document them in the same place along with a practical example.
This commit is contained in:
Laurens Valk
2021-07-19 15:03:10 +02:00
parent 2c32d093d0
commit e8d47ffca1
4 changed files with 40 additions and 16 deletions
+1 -5
View File
@@ -61,9 +61,5 @@ The operation timed out.
errorcode: Dict[int, str]
"""
Dictionary mapping numeric error codes to strings with symbolic error
code (see above)::
>>> print(uerrno.errorcode[uerrno.EEXIST])
EEXIST
Dictionary that maps numeric error codes to strings with symbolic error code.
"""