summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-10-08 02:44:31 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-10-08 02:44:31 (GMT)
commit8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df (patch)
tree1d688f1ea3f3b785a19760dd1477b796370c698d /Doc
parent20eae69a9fb5b5453f9ddf01600f99fd6ffffed7 (diff)
downloadcpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.zip
cpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.tar.gz
cpython-8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libposixpath.tex7
-rw-r--r--Doc/lib/libsys.tex26
2 files changed, 33 insertions, 0 deletions
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex
index 7ad19e3..c5f992b 100644
--- a/Doc/lib/libposixpath.tex
+++ b/Doc/lib/libposixpath.tex
@@ -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
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index eec02e0..3f8f7b6 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -216,6 +216,32 @@ It is always available.
only.
\end{funcdesc}
+\begin{funcdesc}{getwindowsversion}{}
+ Return a tuple containing five components, describing the Windows
+ version currently running. The elements are \var{major}, \var{minor},
+ \var{build}, \var{platform}, and \var{text}. \var{text} contains
+ a string while all other values are integers.
+
+ \var{platform} may be one of the following values:
+ \begin{list}{}{\leftmargin 0.7in \labelwidth 0.65in}
+ \item[0 (\constant{VER_PLATFORM_WIN32s})]
+ Win32s on Windows 3.1.
+ \item[1 (\constant{VER_PLATFORM_WIN32_WINDOWS})]
+ Windows 95/98/ME
+ \item[2 (\constant{VER_PLATFORM_WIN32_NT})]
+ Windows NT/2000/XP
+ \item[3 (\constant{VER_PLATFORM_WIN32_CE})]
+ Windows CE.
+ \end{list}
+
+ This function wraps the Win32 \function{GetVersionEx()} function;
+ see the Microsoft Documentation for more information about these
+ fields.
+
+ Availability: Windows.
+ \versionadded{2.3}
+\end{funcdesc}
+
\begin{datadesc}{hexversion}
The version number encoded as a single integer. This is guaranteed
to increase with each version, including proper support for