summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorJohannes Gijsbers <jlg@dds.nl>2004-08-30 10:19:56 +0000
committerJohannes Gijsbers <jlg@dds.nl>2004-08-30 10:19:56 +0000
commite54bb8574dd05077c532c8ae6555d1a2c405602b (patch)
tree1d4da777072be19b752556c402dbc5c58626cea0 /Doc
parent852b004d0ba4c2f193311421344266778ef7b9ef (diff)
downloadcpython-e54bb8574dd05077c532c8ae6555d1a2c405602b.tar.gz
Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libglob.tex1
-rw-r--r--Doc/lib/libposixpath.tex9
2 files changed, 10 insertions, 0 deletions
diff --git a/Doc/lib/libglob.tex b/Doc/lib/libglob.tex
index 5c1de807bb..0d0d712b84 100644
--- a/Doc/lib/libglob.tex
+++ b/Doc/lib/libglob.tex
@@ -21,6 +21,7 @@ which must be a string containing a path specification.
\var{pathname} can be either absolute (like
\file{/usr/src/Python-1.5/Makefile}) or relative (like
\file{../../Tools/*/*.gif}), and can contain shell-style wildcards.
+Broken symlinks are included in the results (as in the shell).
\end{funcdesc}
For example, consider a directory containing only the following files:
diff --git a/Doc/lib/libposixpath.tex b/Doc/lib/libposixpath.tex
index e79df3e744..066a9616fa 100644
--- a/Doc/lib/libposixpath.tex
+++ b/Doc/lib/libposixpath.tex
@@ -43,6 +43,15 @@ half of the pair returned by \code{split(\var{path})}.
\begin{funcdesc}{exists}{path}
Return \code{True} if \var{path} refers to an existing path.
+Returns \code{False} for broken symbolic links.
+\end{funcdesc}
+
+\begin{funcdesc}{lexists}{path}
+Return \code{True} if \var{path} refers to an existing path.
+Returns \code{True} for broken symbolic links.
+Equivalent to \function{exists()} on platforms lacking
+\function{os.lstat()}.
+\versionadded{2.4}
\end{funcdesc}
\begin{funcdesc}{expanduser}{path}