Kaydet (Commit) 59d8b73c authored tarafından Fred Drake's avatar Fred Drake

Remove all references to posixpath; only refer to os.path.

Formalize the xstat() documentation.
üst 2e9e0dfc
...@@ -40,18 +40,15 @@ The following modules are documented here: ...@@ -40,18 +40,15 @@ The following modules are documented here:
\section{\module{mac} --- \section{\module{mac} ---
Similar interfaces to the \module{posix} module.} Implementations for the \module{os} module}
\declaremodule{builtin}{mac} \declaremodule{builtin}{mac}
\modulesynopsis{Similar interfaces to the \module{posix} module.} \modulesynopsis{Implementations for the \module{os} module.}
This module provides a subset of the operating system dependent This module implements the operating system dependent functionality
functionality provided by the optional built-in module \module{posix}. provided by the standard module \module{os}\refstmodindex{os}. It is
It is best accessed through the more portable standard module best accessed through the \module{os} module.
\module{os}.
\refbimodindex{posix}
\refstmodindex{os}
The following functions are available in this module: The following functions are available in this module:
\function{chdir()}, \function{chdir()},
...@@ -74,25 +71,25 @@ as well as the exception \exception{error}. Note that the times ...@@ -74,25 +71,25 @@ as well as the exception \exception{error}. Note that the times
returned by \function{stat()} are floating-point values, like all time returned by \function{stat()} are floating-point values, like all time
values in MacPython. values in MacPython.
One additional function is available: \function{xstat()}. This function One additional function is available:
returns the same information as \function{stat()}, but with three extra
values appended: the size of the resource fork of the file and its \begin{funcdesc}{xstat}{path}
4-character creator and type. This function returns the same information as \function{stat()}, but
with three additional values appended: the size of the resource fork
of the file and its 4-character creator and type.
\end{funcdesc}
\section{\module{macpath} --- \section{\module{macpath} ---
MacOS path manipulation functions.} MacOS path manipulation functions}
\declaremodule{standard}{macpath} \declaremodule{standard}{macpath}
\modulesynopsis{MacOS path manipulation functions.} \modulesynopsis{MacOS path manipulation functions.}
This module provides a subset of the pathname manipulation functions This module is the Macintosh implementation of the \module{os.path}
available from the optional standard module \module{posixpath}. It is module. It is most portably accessed as \module{os.path}.
best accessed through the more portable standard module \module{os}, as \refstmodindex{os.path}
\code{os.path}.
\refstmodindex{posixpath}
\refstmodindex{os}
The following functions are available in this module: The following functions are available in this module:
\function{normcase()}, \function{normcase()},
...@@ -104,5 +101,5 @@ The following functions are available in this module: ...@@ -104,5 +101,5 @@ The following functions are available in this module:
\function{isfile()}, \function{isfile()},
\function{walk()}, \function{walk()},
\function{exists()}. \function{exists()}.
For other functions available in \module{posixpath} dummy counterparts For other functions available in \module{os.path} dummy counterparts
are available. are available.
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