summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-11 21:16:37 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-11 21:16:37 (GMT)
commit3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560 (patch)
tree18dcc0719f0285e8e911fdf390a339bc49af747c
parent627a666db05a0a70ac54fe6456719ee0530b5df7 (diff)
downloadcpython-3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560.zip
cpython-3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560.tar.gz
cpython-3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560.tar.bz2
Clarify os.strerror()s exception behavior.
-rw-r--r--Doc/library/os.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 0790f64..b2d8f80 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -285,7 +285,8 @@ process and user.
.. function:: strerror(code)
Return the error message corresponding to the error code in *code*.
- Availability: Unix, Windows.
+ On platforms where :cfunc:`strerror` returns ``NULL`` when given an unknown
+ error number, :exc:`ValueError` is raised. Availability: Unix, Windows.
.. function:: umask(mask)