From: Georg Brandl Date: Sun, 11 May 2008 21:16:37 +0000 (+0000) Subject: Clarify os.strerror()s exception behavior. X-Git-Tag: v2.6b1~480 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560;p=thirdparty%2FPython%2Fcpython.git Clarify os.strerror()s exception behavior. --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0790f644d87a..b2d8f8085732 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)