@@ -13,26 +13,34 @@ module. For creating temporary files and directories see the :mod:`tempfile`
1313module, and for high-level file and directory handling see the :mod: `shutil `
1414module.
1515
16- The design of all built-in operating system dependent modules of Python is such
17- that as long as the same functionality is available, it uses the same interface;
18- for example, the function ``os.stat(path) `` returns stat information about
19- *path * in the same format (which happens to have originated with the POSIX
20- interface).
16+ Notes on the availability of these functions:
2117
22- Extensions peculiar to a particular operating system are also available through
23- the :mod: `os ` module, but using them is of course a threat to portability!
18+ * The design of all built-in operating system dependent modules of Python is
19+ such that as long as the same functionality is available, it uses the same
20+ interface; for example, the function ``os.stat(path) `` returns stat
21+ information about *path * in the same format (which happens to have originated
22+ with the POSIX interface).
2423
25- .. note ::
24+ * Extensions peculiar to a particular operating system are also available
25+ through the :mod: `os ` module, but using them is of course a threat to
26+ portability.
2627
27- All functions accepting path or file names accept both bytes and string
28- objects, and result in an object of the same type, if a path or file name is
29- returned.
28+ * All functions accepting path or file names accept both bytes and string
29+ objects, and result in an object of the same type, if a path or file name is
30+ returned.
3031
3132.. note ::
3233
3334 If not separately noted, all functions that claim "Availability: Unix" are
3435 supported on Mac OS X, which builds on a Unix core.
3536
37+ * An "Availability: Unix" note means that this function is commonly found on
38+ Unix systems. It does not make any claims about its existence on a specific
39+ operating system.
40+
41+ * If not separately noted, all functions that claim "Availability: Unix" are
42+ supported on Mac OS X, which builds on a Unix core.
43+
3644.. note ::
3745
3846 All functions in this module raise :exc: `OSError ` in the case of invalid or
@@ -46,9 +54,9 @@ the :mod:`os` module, but using them is of course a threat to portability!
4654
4755.. data :: name
4856
49- The name of the operating system dependent module imported. The following names
50- have currently been registered: ``'posix' ``, ``'nt' ``, ``'mac' ``, `` 'os2 ' ``,
51- ``'ce' ``, ``'java' ``.
57+ The name of the operating system dependent module imported. The following
58+ names have currently been registered: ``'posix' ``, ``'nt' ``, ``'mac' ``,
59+ ``'os2' ``, `` ' ce' ``, ``'java' ``.
5260
5361
5462.. _os-filenames :
0 commit comments