[New-bugs-announce] [issue30413] Add fnmatch.filter_false function

Steven D'Aprano report at bugs.python.org
Sat May 20 09:19:02 EDT 2017

New submission from Steven D'Aprano:

There has been some discussion on Python-Ideas about adding fnmatch.filter_false to complement filter, for when you want to ignore matching files rather than non-matching ones.


I don't believe there have been any strong objections, and work-arounds have a considerable performance penalty (according to the OP, I have not confirmed that).

Here's a patch which refactors filter and adds filter_false.

Sorry I haven't got my head around the brave new world on Github, so I'm going old school here with a diff :-)

files: filterfalse.diff
keywords: patch
messages: 294029
nosy: steven.daprano
priority: normal
severity: normal
status: open
title: Add fnmatch.filter_false function
type: enhancement
versions: Python 3.7
Added file: http://bugs.python.org/file46879/filterfalse.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list