]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#16877: Add mention that shell-style path expansions are not automatic.
authorR David Murray <rdmurray@bitdance.com>
Sun, 6 Jan 2013 21:13:10 +0000 (16:13 -0500)
committerR David Murray <rdmurray@bitdance.com>
Sun, 6 Jan 2013 21:13:10 +0000 (16:13 -0500)
Doc/library/os.path.rst

index 22272a79d40a5b84511a956c5f2108471a7a1e0f..35d5e16026064491e781f0d0b6544feeae710aa4 100644 (file)
@@ -17,6 +17,11 @@ path names. Vice versa, using bytes objects cannot represent all file
 names on Windows (in the standard ``mbcs`` encoding), hence Windows
 applications should use string objects to access all files.
 
+Unlike a unix shell, Python does not do any *automatic* path expansions.
+Functions such as :func:`expanduser` and :func:`expandvars` can be invoked
+explicitly when an application desires shell-like path expansion.  (See also
+the :mod:`glob` module.)
+
 .. note::
 
    All of these functions accept either only bytes or only string objects as