This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Let fnmatch.filter accept a tuple of patterns
Type: enhancement Stage: patch review
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: adelfino, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2020-07-28 23:41 by adelfino, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 21666 closed adelfino, 2020-07-28 23:45
Messages (2)
msg374540 - (view) Author: Andrés Delfino (adelfino) * (Python triager) Date: 2020-07-28 23:41
I propose to let fnmatch.filter accept a tuple of patterns as its pat parameter, while still supporting a single string argument (just like str.endswith does).

The code to do this manually and efficiently pretty much involves copying filter.
msg382916 - (view) Author: Andrés Delfino (adelfino) * (Python triager) Date: 2020-12-12 16:20
Serhiy, could you take a look at this when you have some spare time? :)
History
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85601
2020-12-12 16:20:38adelfinosetmessages: + msg382916
2020-08-11 05:25:12xtreaksetnosy: + serhiy.storchaka
2020-07-28 23:45:25adelfinosetkeywords: + patch
stage: patch review
pull_requests: + pull_request20812
2020-07-28 23:41:58adelfinocreate