On this page
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
- Requires Python 3.14+: Complement of
fnmatch.filter().
REPL Inspect
from fnmatch import filterfalse
help(filterfalse)
Linked from
Related notes
- tuts/python3/stdlib_module/fnmatch/filter Linked here; links to this page; shared tags: #fnmatch, #stdlib
- tuts/python3/stdlib_module/fnmatch/fnmatch Linked here; links to this page; shared tags: #fnmatch, #stdlib
- tuts/python3/stdlib_module/fnmatch/fnmatchcase Linked here; links to this page; shared tags: #fnmatch, #stdlib
- tuts/python3/stdlib_module/fnmatch/translate Linked here; links to this page; shared tags: #fnmatch, #stdlib
- tuts/python3/stdlib_module/fnmatch links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib