[Python-checkins] cpython (3.2): #16877: Add mention that shell-style path expansions are not automatic.

r.david.murray python-checkins at python.org
Sun Jan 6 22:15:21 CET 2013


http://hg.python.org/cpython/rev/02e2fa22f8b7
changeset:   81303:02e2fa22f8b7
branch:      3.2
parent:      81291:d2867c430333
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Jan 06 16:13:10 2013 -0500
summary:
  #16877: Add mention that shell-style path expansions are not automatic.

files:
  Doc/library/os.path.rst |  5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Doc/library/os.path.rst b/Doc/library/os.path.rst
--- a/Doc/library/os.path.rst
+++ b/Doc/library/os.path.rst
@@ -17,6 +17,11 @@
 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list