[Python-ideas] Make fnmatch.filter accept a tuple of patterns
David Mertz
mertz at gnosis.cx
Sat Nov 3 13:45:10 EDT 2018
More information about the Python-ideas mailing list
Sat Nov 3 13:45:10 EDT 2018
- Previous message (by thread): [Python-ideas] Make fnmatch.filter accept a tuple of patterns
- Next message (by thread): [Python-ideas] Make fnmatch.filter accept a tuple of patterns
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Nov 3, 2018, 1:30 PM Stephen J. Turnbull < turnbull.stephen.fw at u.tsukuba.ac.jp wrote: > P.S. I can't resist. This is horrible, but: > > def multifilter(names, *patterns): > return list(set().union(*[fnmatch.filter(names, p) for p in patterns])) > Yes, that is a horrible spelling for: {fnmatch.filter(names, p) for p in patterns} ;-) > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181103/19c4cd05/attachment.html>
- Previous message (by thread): [Python-ideas] Make fnmatch.filter accept a tuple of patterns
- Next message (by thread): [Python-ideas] Make fnmatch.filter accept a tuple of patterns
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list