environment variables. The returned string consists of a series of
directory names separated by a platform dependent delimiter
character. The delimiter character is \character{:} on \UNIX,
- \character{;} on DOS/Windows, and \character{\e n} (the \ASCII{}
+ \character{;} on Windows, and \character{\e n} (the \ASCII{}
newline character) on Macintosh. The returned string points into
static storage; the caller should not modify its value. The value
is available to Python code as the list
\begin{macrodesc}{program}{\p{name}}
The name of an executable program. This may differ from the
file name for the executable for some platforms. In particular,
- the \file{.exe} (or other) extension should be omitted for DOS
- and Windows programs.
+ the \file{.exe} (or other) extension should be omitted for
+ Windows programs.
\end{macrodesc}
\begin{macrodesc}{programopt}{\p{option}}
\begin{datadesc}{name}
The name of the operating system dependent module imported. The
following names have currently been registered: \code{'posix'},
-\code{'nt'}, \code{'dos'}, \code{'mac'}, \code{'os2'}, \code{'ce'},
+\code{'nt'}, \code{'mac'}, \code{'os2'}, \code{'ce'},
\code{'java'}, \code{'riscos'}.
\end{datadesc}
\begin{datadesc}{altsep}
An alternative character used by the operating system to separate pathname
components, or \code{None} if only one separator character exists. This is
-set to \character{/} on DOS and Windows systems where \code{sep} is a
+set to \character{/} on Windows systems where \code{sep} is a
backslash.
\end{datadesc}
\begin{datadesc}{pathsep}
The character conventionally used by the operating system to separate
search patch components (as in \envvar{PATH}), such as \character{:} for
-\POSIX{} or \character{;} for DOS and Windows.
+\POSIX{} or \character{;} for Windows.
\end{datadesc}
\begin{datadesc}{defpath}
The string used to separate (or, rather, terminate) lines on the
current platform. This may be a single character, such as \code{'\e
n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple characters,
-for example, \code{'\e r\e n'} for DOS and Windows.
+for example, \code{'\e r\e n'} for Windows.
\end{datadesc}
document these.
\begin{description}
-\item[\module{dospath}]
---- Implementation of \module{os.path} on MS-DOS.
-
\item[\module{ntpath}]
--- Implementation on \module{os.path} on Win32, Win64, WinCE, and
OS/2 platforms.
reading and writing; the pathname \code{'-'} is understood to mean the
standard input or output. However, this interface is deprecated; it's
better for the caller to open the file itself, and be sure that, when
-required, the mode is \code{'rb'} or \code{'wb'} on Windows or DOS.
+required, the mode is \code{'rb'} or \code{'wb'} on Windows.
This code was contributed by Lance Ellinghouse, and modified by Jack
Jansen.
A physical line ends in whatever the current platform's convention is
for terminating lines. On \UNIX, this is the \ASCII{} LF (linefeed)
-character. On DOS/Windows, it is the \ASCII{} sequence CR LF (return
+character. On Windows, it is the \ASCII{} sequence CR LF (return
followed by linefeed). On Macintosh, it is the \ASCII{} CR (return)
character.
\file{/usr/local/python} is a popular alternative location.)
Typing an end-of-file character (\kbd{Control-D} on \UNIX,
-\kbd{Control-Z} on DOS or Windows) at the primary prompt causes the
+\kbd{Control-Z} on Windows) at the primary prompt causes the
interpreter to exit with a zero exit status. If that doesn't work,
you can exit the interpreter by typing the following commands:
\samp{import sys; sys.exit()}.