Commit e6dec98e authored by R David Murray's avatar R David Murray

merge #16877: Add mention that shell-style path expansions are not automatic.

parents 61dbb008 a4e700c0
...@@ -17,6 +17,11 @@ path names. Vice versa, using bytes objects cannot represent all 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 names on Windows (in the standard ``mbcs`` encoding), hence Windows
applications should use string objects to access all files. 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:: .. note::
All of these functions accept either only bytes or only string objects as All of these functions accept either only bytes or only string objects as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment