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

fnmatch.filterfalse

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


Import

import fnmatch
from fnmatch import filterfalse

Signature & Overview

fnmatch.filterfalse(names, pat)

Construct a list from those elements of the iterable NAMES that do not match PAT.

Usage

import fnmatch

# Python 3.14+: returns names that do NOT match the glob pattern
assert hasattr(fnmatch, "filterfalse") or True

Gotchas

REPL Inspect

from fnmatch import filterfalse
help(filterfalse)

Linked from

Related notes