@@ -13,7 +13,7 @@ \section{\module{os} ---
1313\module {mac} or \refmodule {posix} and exports the same functions and data
1414as found there. The design of all Python's built-in OS dependent
1515modules is such that as long as the same functionality is available,
16- it uses the same interface; e.g. , the function
16+ it uses the same interface; for example , the function
1717\code {os.stat(\var {path})} returns stat information about \var {path} in
1818the same format (which happens to have originated with the
1919\POSIX {} interface).
@@ -42,9 +42,9 @@ \section{\module{os} ---
4242
4343
4444\begin {excdesc }{error}
45- This exception is raised when a function returns a
46- system-related error (e.g., not for illegal argument types). This is
47- also known as the built-in exception \exception {OSError}. The
45+ This exception is raised when a function returns a system-related
46+ error (not for illegal argument types or other incidental errors).
47+ This is also known as the built-in exception \exception {OSError}. The
4848accompanying value is a pair containing the numeric error code from
4949\cdata {errno} and the corresponding string, as would be printed by the
5050C function \cfunction {perror()}. See the module
@@ -55,7 +55,7 @@ \section{\module{os} ---
5555\member {errno} and \member {strerror}. The first holds the value of
5656the C \cdata {errno} variable, and the latter holds the corresponding
5757error message from \cfunction {strerror()}. For exceptions that
58- involve a file system path (e.g. \function {chdir()} or
58+ involve a file system path (such as \function {chdir()} or
5959\function {unlink()}), the exception instance will contain a third
6060attribute, \member {filename}, which is the file name passed to the
6161function.
@@ -72,10 +72,11 @@ \section{\module{os} ---
7272
7373\begin {datadesc }{path}
7474The corresponding OS dependent standard module for pathname
75- operations, e.g., \module {posixpath} or \module {macpath}. Thus, given
76- the proper imports, \code {os.path.split(\var {file})} is equivalent to but
77- more portable than \code {posixpath.split(\var {file})}. Note that this
78- is also a valid module: it may be imported directly as
75+ operations, such as \module {posixpath} or \module {macpath}. Thus,
76+ given the proper imports, \code {os.path.split(\var {file})} is
77+ equivalent to but more portable than
78+ \code {posixpath.split(\var {file})}. Note that this is also an
79+ importable module: it may be imported directly as
7980\refmodule {os.path}.
8081\end {datadesc }
8182
@@ -858,15 +859,15 @@ \subsection{Process Management \label{os-process}}
858859
859860\begin {funcdesc }{execv}{path, args}
860861Execute the executable \var {path} with argument list \var {args},
861- replacing the current process (i.e., the Python interpreter).
862+ replacing the current process (the Python interpreter).
862863The argument list may be a tuple or list of strings.
863864Availability: \UNIX {}, Windows.
864865\end {funcdesc }
865866
866867\begin {funcdesc }{execve}{path, args, env}
867868Execute the executable \var {path} with argument list \var {args},
868- and environment \var {env},
869- replacing the current process (i.e., the Python interpreter).
869+ and environment \var {env}, replacing the current process (the Python
870+ interpreter).
870871The argument list may be a tuple or list of strings.
871872The environment must be a dictionary mapping strings to strings.
872873Availability: \UNIX {}, Windows.
@@ -1150,20 +1151,20 @@ \subsection{Miscellaneous System Information \label{os-path}}
11501151
11511152
11521153\begin {datadesc }{curdir}
1153- The constant string used by the OS to refer to the current directory,
1154- e.g. \ \code {'.'} for \POSIX {} or \code {':'} for the Macintosh.
1154+ The constant string used by the OS to refer to the current directory.
1155+ For example: \code {'.'} for \POSIX {} or \code {':'} for the Macintosh.
11551156\end {datadesc }
11561157
11571158\begin {datadesc }{pardir}
1158- The constant string used by the OS to refer to the parent directory,
1159- e.g. \ \code {'..'} for \POSIX {} or \code {'::'} for the Macintosh.
1159+ The constant string used by the OS to refer to the parent directory.
1160+ For example: \code {'..'} for \POSIX {} or \code {'::'} for the Macintosh.
11601161\end {datadesc }
11611162
11621163\begin {datadesc }{sep}
11631164The character used by the OS to separate pathname components,
1164- e.g. \ \character {/} for \POSIX {} or \character {:} for the Macintosh.
1165- Note that knowing this is not sufficient to be able to parse or
1166- concatenate pathnames --- use \function {os.path.split()} and
1165+ for example, \character {/} for \POSIX {} or \character {:} for the
1166+ Macintosh. Note that knowing this is not sufficient to be able to
1167+ parse or concatenate pathnames --- use \function {os.path.split()} and
11671168\function {os.path.join()} --- but it is occasionally useful.
11681169\end {datadesc }
11691170
@@ -1175,7 +1176,7 @@ \subsection{Miscellaneous System Information \label{os-path}}
11751176
11761177\begin {datadesc }{pathsep}
11771178The character conventionally used by the OS to separate search patch
1178- components (as in \envvar {PATH}), e.g. \ \character {:} for \POSIX {} or
1179+ components (as in \envvar {PATH}), such as \character {:} for \POSIX {} or
11791180\character {;} for DOS and Windows.
11801181\end {datadesc }
11811182
@@ -1186,7 +1187,7 @@ \subsection{Miscellaneous System Information \label{os-path}}
11861187
11871188\begin {datadesc }{linesep}
11881189The string used to separate (or, rather, terminate) lines on the
1189- current platform. This may be a single character,
1190- e.g. \ \code {' \e n'} for \POSIX {} or \code {'\e r'} for MacOS, or multiple
1191- characters, e.g. \ \code {'\e r\e n'} for MS-DOS and MS Windows.
1190+ current platform. This may be a single character, such as \code {' \e
1191+ n'} for \POSIX {} or \code {'\e r'} for MacOS, or multiple characters,
1192+ for example, \code {'\e r\e n'} for MS-DOS and MS Windows.
11921193\end {datadesc }
0 commit comments