FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-25409: DOC: Clarify text for case normalization in fnmatch. by csabella · Pull Request #1535 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 4 additions & 4 deletions Doc/library/fnmatch.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ patterns.
.. function:: fnmatch(filename, pattern)

Test whether the *filename* string matches the *pattern* string, returning
:const:`True` or :const:`False`. If the operating system is case-insensitive,
then both parameters will be normalized to all lower- or upper-case before
the comparison is performed. :func:`fnmatchcase` can be used to perform a
:const:`True` or :const:`False`. Both parameters are case-normalized
using :func:`os.path.normcase`. :func:`fnmatchcase` can be used to perform a
case-sensitive comparison, regardless of whether that's standard for the
operating system.

Expand All @@ -63,7 +62,8 @@ patterns.
.. function:: fnmatchcase(filename, pattern)

Test whether *filename* matches *pattern*, returning :const:`True` or
:const:`False`; the comparison is case-sensitive.
:const:`False`; the comparison is case-sensitive and does not apply
:func:`os.path.normcase`.


.. function:: filter(names, pattern)
Expand Down

Back | FazBrowse Home | New Git URL