STINNER Victor <vstin...@redhat.com> added the comment:

Rather than adding a new function, why not adding a parameter like 
sort(key=func, reverse=True)? Something like fnmatch.filterfalse(pat, 
invert=True)?

The Unix grep command has a --invert-match option:

       -v, --invert-match
              Invert the sense of matching, to select non-matching lines.

The Unix find and test commands use "!" to invert a condition. Example:

   find ! -name "*.py"  # list files which doesn't match ".py"
   test ! -e setup.py   # true if setup.py doesn't exist

----------
nosy: +vstinner

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to