Message350062
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 |
|
Date |
User |
Action |
Args |
2019-08-21 10:51:02 | vstinner | set | recipients:
+ vstinner, brett.cannon, steven.daprano, serhiy.storchaka, wolma, Roee Nizan |
2019-08-21 10:51:02 | vstinner | set | messageid: <1566384662.12.0.729036973025.issue30413@roundup.psfhosted.org> |
2019-08-21 10:51:02 | vstinner | link | issue30413 messages |
2019-08-21 10:51:01 | vstinner | create | |
|