From: Guido van Rossum Date: Tue, 25 Mar 1997 15:25:54 +0000 (+0000) Subject: Remove untrue statement about . and .. being included in list of names X-Git-Tag: v1.5a1~266 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8e87999ab6ed6aa5aac921fc2e262de618829d9;p=thirdparty%2FPython%2Fcpython.git Remove untrue statement about . and .. being included in list of names passed to walk() visitor. --- diff --git a/Doc/lib/libppath.tex b/Doc/lib/libppath.tex index 7aec4b83705d..9078560b7051 100644 --- a/Doc/lib/libppath.tex +++ b/Doc/lib/libppath.tex @@ -125,8 +125,8 @@ Calls the function \var{visit} with arguments directory tree rooted at \var{p} (including \var{p} itself, if it is a directory). The argument \var{dirname} specifies the visited directory, the argument \var{names} lists the files in the directory (gotten from -\code{posix.listdir(\var{dirname})}, so including \samp{.} and -\samp{..}). The \var{visit} function may modify \var{names} to +\code{posix.listdir(\var{dirname})}). +The \var{visit} function may modify \var{names} to influence the set of directories visited below \var{dirname}, e.g., to avoid visiting certain parts of the tree. (The object referred to by \var{names} must be modified in place, using \code{del} or slice diff --git a/Doc/libppath.tex b/Doc/libppath.tex index 7aec4b83705d..9078560b7051 100644 --- a/Doc/libppath.tex +++ b/Doc/libppath.tex @@ -125,8 +125,8 @@ Calls the function \var{visit} with arguments directory tree rooted at \var{p} (including \var{p} itself, if it is a directory). The argument \var{dirname} specifies the visited directory, the argument \var{names} lists the files in the directory (gotten from -\code{posix.listdir(\var{dirname})}, so including \samp{.} and -\samp{..}). The \var{visit} function may modify \var{names} to +\code{posix.listdir(\var{dirname})}). +The \var{visit} function may modify \var{names} to influence the set of directories visited below \var{dirname}, e.g., to avoid visiting certain parts of the tree. (The object referred to by \var{names} must be modified in place, using \code{del} or slice