Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e6dec98e
Commit
e6dec98e
authored
Jan 06, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
merge #16877: Add mention that shell-style path expansions are not automatic.
parents
61dbb008
a4e700c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Doc/library/os.path.rst
Doc/library/os.path.rst
+5
-0
No files found.
Doc/library/os.path.rst
View file @
e6dec98e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment