From: R David Murray Date: Sun, 6 Jan 2013 21:14:57 +0000 (-0500) Subject: #16877: Add mention that shell-style path expansions are not automatic. X-Git-Tag: v2.7.4rc1~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b847c7fcfe7f8b0c825c087c3bfb8a7ec4bb05bb;p=thirdparty%2FPython%2Fcpython.git #16877: Add mention that shell-style path expansions are not automatic. --- diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst index 3e84de0ce8b4..0df15e419b0b 100644 --- a/Doc/library/os.path.rst +++ b/Doc/library/os.path.rst @@ -16,6 +16,11 @@ write files see :func:`open`, and for accessing the filesystem see the :func:`splitunc` and :func:`ismount` do handle them correctly. +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:: Since different operating systems have different path name conventions, there