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
cc36787a
Commit
cc36787a
authored
Nov 17, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#16420: merge with 3.2.
parents
d8ee1144
90931c2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Doc/library/fnmatch.rst
Doc/library/fnmatch.rst
+3
-2
Doc/library/glob.rst
Doc/library/glob.rst
+3
-0
No files found.
Doc/library/fnmatch.rst
View file @
cc36787a
...
...
@@ -29,6 +29,9 @@ special characters used in shell-style wildcards are:
| ``[!seq]`` | matches any character not in *seq* |
+------------+------------------------------------+
For a literal match, wrap the meta-characters in brackets.
For example, ``'[?]'`` matches the character ``'?'``.
.. index:: module: glob
Note that the filename separator (``'/'`` on Unix) is *not* special to this
...
...
@@ -74,8 +77,6 @@ patterns.
Return the shell-style *pattern* converted to a regular expression.
Be aware there is no way to quote meta-characters.
Example:
>>> import fnmatch, re
...
...
Doc/library/glob.rst
View file @
cc36787a
...
...
@@ -19,6 +19,9 @@ matched. This is done by using the :func:`os.listdir` and
subshell. (For tilde and shell variable expansion, use
:func:`os.path.expanduser` and :func:`os.path.expandvars`.)
For a literal match, wrap the meta-characters in brackets.
For example, ``'[?]'`` matches the character ``'?'``.
.. function:: glob(pathname)
...
...
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