On Sat, Nov 3, 2018, 1:30 PM Stephen J. Turnbull <
turnbull.stephen...@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}

;-)

>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to