Add os.path.supports_unicode_filenames for all platforms,

sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.
This commit is contained in:
Mark Hammond 2002-10-08 02:44:31 +00:00
parent 20eae69a9f
commit 8696ebcd28
11 changed files with 101 additions and 11 deletions

View file

@ -219,6 +219,13 @@ avoid visiting certain parts of the tree. (The object referred to by
\var{names} must be modified in place, using \keyword{del} or slice
assignment.)
\begin{datadesc}{supports_unicode_filenames}
True if arbitrary Unicode strings can be used as file names (within
limitations imposed by the file system), and if os.listdir returns
Unicode strings for a Unicode argument.
\versionadded{2.3}
\end{datadesc}
\begin{notice}
Symbolic links to directories are not treated as subdirectories, and
that \function{walk()} therefore will not visit them. To visit linked