Kaydet (Commit) 6db897c5 authored tarafından Fred Drake's avatar Fred Drake

Move chdir() and getcwd() descriptions to "Files and Directories" with

a pointer from the "Process Parameters" section.  Based on comments
from Aahz Maruch, Tim Peters, and GvR.
üst f930d827
...@@ -86,12 +86,6 @@ is also a valid module: it may be imported directly as ...@@ -86,12 +86,6 @@ is also a valid module: it may be imported directly as
These functions and data items provide information and operate on the These functions and data items provide information and operate on the
current process and user. current process and user.
\begin{funcdesc}{chdir}{path}
\index{directory!changing}
Change the current working directory to \var{path}.
Availability: Macintosh, \UNIX{}, Windows.
\end{funcdesc}
\begin{datadesc}{environ} \begin{datadesc}{environ}
A mapping object representing the string environment. For example, A mapping object representing the string environment. For example,
\code{environ['HOME']} is the pathname of your home directory (on some \code{environ['HOME']} is the pathname of your home directory (on some
...@@ -107,10 +101,11 @@ the appropriate process-creation functions to cause child processes to ...@@ -107,10 +101,11 @@ the appropriate process-creation functions to cause child processes to
use a modified environment. use a modified environment.
\end{datadesc} \end{datadesc}
\begin{funcdesc}{getcwd}{} \begin{funcdescni}{chdir}{path}
Return a string representing the current working directory. \funclineni{getcwd}{}
Availability: Macintosh, \UNIX{}, Windows. These functions are described in ``Files and Directories'' (section
\end{funcdesc} \ref{os-file-dir}).
\end{funcdescni}
\begin{funcdesc}{getegid}{} \begin{funcdesc}{getegid}{}
Return the current process' effective group id. Return the current process' effective group id.
...@@ -410,6 +405,17 @@ See the \UNIX{} manual for the semantics. ...@@ -410,6 +405,17 @@ See the \UNIX{} manual for the semantics.
Availability: \UNIX{}. Availability: \UNIX{}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{chdir}{path}
\index{directory!changing}
Change the current working directory to \var{path}.
Availability: Macintosh, \UNIX{}, Windows.
\end{funcdesc}
\begin{funcdesc}{getcwd}{}
Return a string representing the current working directory.
Availability: Macintosh, \UNIX{}, Windows.
\end{funcdesc}
\begin{funcdesc}{chmod}{path, mode} \begin{funcdesc}{chmod}{path, mode}
Change the mode of \var{path} to the numeric \var{mode}. Change the mode of \var{path} to the numeric \var{mode}.
Availability: \UNIX{}, Windows. Availability: \UNIX{}, Windows.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment