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
Priority: normal Keywords: patch

Created on 2020-07-28 23:41 by adelfino, last changed 2020-07-28 23:45 by adelfino.

Pull Requests
URL Status Linked Edit
PR 21666 open adelfino, 2020-07-28 23:45
Messages (1)
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.
History
Date User Action Args
2020-07-28 23:45:25adelfinosetkeywords: + patch
stage: patch review
pull_requests: + pull_request20812
2020-07-28 23:41:58adelfinocreate