Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame^] | 1 | \chapter{Macintosh Specific Services} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 2 | |
Guido van Rossum | 8675115 | 1995-02-28 17:14:32 +0000 | [diff] [blame] | 3 | The modules in this chapter are available on the Apple Macintosh only. |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 470be14 | 1995-03-17 16:07:09 +0000 | [diff] [blame] | 5 | \section{Built-in Module \sectcode{mac}} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 6 | |
| 7 | \bimodindex{mac} |
| 8 | This module provides a subset of the operating system dependent |
| 9 | functionality provided by the optional built-in module \code{posix}. |
| 10 | It is best accessed through the more portable standard module |
| 11 | \code{os}. |
| 12 | |
| 13 | The following functions are available in this module: |
| 14 | \code{chdir}, |
| 15 | \code{getcwd}, |
| 16 | \code{listdir}, |
| 17 | \code{mkdir}, |
| 18 | \code{rename}, |
| 19 | \code{rmdir}, |
| 20 | \code{stat}, |
| 21 | \code{sync}, |
| 22 | \code{unlink}, |
| 23 | as well as the exception \code{error}. |
| 24 | |
Guido van Rossum | 470be14 | 1995-03-17 16:07:09 +0000 | [diff] [blame] | 25 | \section{Standard Module \sectcode{macpath}} |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 26 | |
| 27 | \stmodindex{macpath} |
| 28 | This module provides a subset of the pathname manipulation functions |
| 29 | available from the optional standard module \code{posixpath}. It is |
| 30 | best accessed through the more portable standard module \code{os}, as |
| 31 | \code{os.path}. |
| 32 | |
| 33 | The following functions are available in this module: |
| 34 | \code{normcase}, |
| 35 | \code{isabs}, |
| 36 | \code{join}, |
| 37 | \code{split}, |
| 38 | \code{isdir}, |
| 39 | \code{isfile}, |
| 40 | \code{exists}. |