From 3fc974f2d4d3d8f0c5ae54f3a347422b50a1c560 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 11 May 2008 21:16:37 +0000 Subject: [PATCH] Clarify os.strerror()s exception behavior. --- Doc/library/os.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0790f644d87..b2d8f808573 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)