bpo-25409: Clarify fnmatch and fnmatchcase documentation (GH-1535) (G… · python/cpython@656f232 (original) (raw)
`@@ -43,9 +43,8 @@ patterns.
`
43
43
`.. function:: fnmatch(filename, pattern)
`
44
44
``
45
45
` Test whether the filename string matches the pattern string, returning
`
46
``
`` -
:const:True
or :const:False
. If the operating system is case-insensitive,
``
47
``
`-
then both parameters will be normalized to all lower- or upper-case before
`
48
``
`` -
the comparison is performed. :func:fnmatchcase
can be used to perform a
``
``
46
`` +
:const:True
or :const:False
. Both parameters are case-normalized
``
``
47
`` +
using :func:os.path.normcase
. :func:fnmatchcase
can be used to perform a
``
49
48
` case-sensitive comparison, regardless of whether that's standard for the
`
50
49
` operating system.
`
51
50
``
`@@ -63,7 +62,8 @@ patterns.
`
63
62
`.. function:: fnmatchcase(filename, pattern)
`
64
63
``
65
64
`` Test whether filename matches pattern, returning :const:True
or
``
66
``
`` -
:const:False
; the comparison is case-sensitive.
``
``
65
`` +
:const:False
; the comparison is case-sensitive and does not apply
``
``
66
`` +
:func:os.path.normcase
.
``
67
67
``
68
68
``
69
69
`.. function:: filter(names, pattern)
`