From: Georg Brandl Date: Sat, 16 May 2009 11:21:29 +0000 (+0000) Subject: #2856: document 2.x os.listdir() behavior for undecodable filenames. X-Git-Tag: v2.7a1~1181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d933cc293b03c3dda7d79694ebc029feed800e8c;p=thirdparty%2FPython%2Fcpython.git #2856: document 2.x os.listdir() behavior for undecodable filenames. --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 061f1ce408f8..1109a1d0970e 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -930,7 +930,8 @@ Files and Directories .. versionchanged:: 2.3 On Windows NT/2k/XP and Unix, if *path* is a Unicode object, the result will be - a list of Unicode objects. + a list of Unicode objects. Undecodable filenames will still be returned as + string objects. .. function:: lstat(path)