On this page
  1. fnmatch.fnmatchcase
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

fnmatch.fnmatchcase

Prev: fnmatch.fnmatch | Up: fnmatch | Next: fnmatch.translate
Rel: fnmatch.filter, fnmatch.filterfalse, fnmatch.fnmatch, fnmatch.translate
Ref: docs.python.org — fnmatch.fnmatchcase
Tags: #public #python3 #stdlib #fnmatch


Import

import fnmatch
from fnmatch import fnmatchcase

Signature & Overview

fnmatch.fnmatchcase(name, pat)

Test whether FILENAME matches PATTERN, including case.

Usage

import fnmatch

assert fnmatch.fnmatchcase("README.md", "*.md") is True
assert fnmatch.fnmatchcase("README.MD", "*.md") is False

Gotchas

REPL Inspect

from fnmatch import fnmatchcase
help(fnmatchcase)

Linked from

Related notes