Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6dec98

Browse files
committed
merge #16877: Add mention that shell-style path expansions are not automatic.
2 parents 61dbb00 + a4e700c commit e6dec98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/library/os.path.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ path names. Vice versa, using bytes objects cannot represent all file
1717
names on Windows (in the standard ``mbcs`` encoding), hence Windows
1818
applications should use string objects to access all files.
1919

20+
Unlike a unix shell, Python does not do any *automatic* path expansions.
21+
Functions such as :func:`expanduser` and :func:`expandvars` can be invoked
22+
explicitly when an application desires shell-like path expansion. (See also
23+
the :mod:`glob` module.)
24+
2025
.. note::
2126

2227
All of these functions accept either only bytes or only string objects as

0 commit comments

Comments
 (0)