@@ -43,13 +43,15 @@ applications should use string objects to access all files.
4343.. function :: abspath(path)
4444
4545 Return a normalized absolutized version of the pathname *path *. On most
46- platforms, this is equivalent to ``normpath(join(os.getcwd(), path)) ``.
46+ platforms, this is equivalent to calling the function :func: `normpath ` as
47+ follows: ``normpath(join(os.getcwd(), path)) ``.
4748
4849
4950.. function :: basename(path)
5051
51- Return the base name of pathname *path *. This is the second half of the pair
52- returned by ``split(path) ``. Note that the result of this function is different
52+ Return the base name of pathname *path *. This is the second element of the
53+ pair returned by passing *path * to the function :func: `split `. Note that
54+ the result of this function is different
5355 from the Unix :program: `basename ` program; where :program: `basename ` for
5456 ``'/foo/bar/' `` returns ``'bar' ``, the :func: `basename ` function returns an
5557 empty string (``'' ``).
@@ -64,8 +66,8 @@ applications should use string objects to access all files.
6466
6567.. function :: dirname(path)
6668
67- Return the directory name of pathname *path *. This is the first half of the
68- pair returned by `` split( path) ` `.
69+ Return the directory name of pathname *path *. This is the first element of
70+ the pair returned by passing * path * to the function :func: ` split `.
6971
7072
7173.. function :: exists(path)
@@ -282,7 +284,8 @@ applications should use string objects to access all files.
282284 *path * is empty, both *head * and *tail * are empty. Trailing slashes are
283285 stripped from *head * unless it is the root (one or more slashes only). In
284286 all cases, ``join(head, tail) `` returns a path to the same location as *path *
285- (but the strings may differ).
287+ (but the strings may differ). Also see the functions :func: `dirname ` and
288+ :func: `basename `.
286289
287290
288291.. function :: splitdrive(path)
0 commit comments