[Python-ideas] Make fnmatch.filter accept a tuple of patterns
Steven D'Aprano
steve at pearwood.info
Sat Nov 3 20:41:04 EDT 2018
On Sat, Nov 03, 2018 at 02:49:00AM +0900, Stephen J. Turnbull wrote:
> If you're going to improve the glob module, why not use bash or zsh
> extended globbing ('**', '{a,b}') as the model? This is more
> powerful, and already familiar to many users.
I thought it did support extended globbing?
https://docs.python.org/3/library/glob.html#glob.glob
But brace expansion should be a thing. For backwards compatibility
reasons, we probably need a switch to turn it on, or a separate function
call, or maybe a deprecation period.
--
Steve
More information about the Python-ideas
mailing list