[Python-ideas] Curly braces expansion in shell-like matcher modules

Fred Drake fdrake at acm.org
Tue Aug 17 15:14:04 CEST 2010

On Tue, Aug 17, 2010 at 9:03 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> IMO, fnmatch is the right place for such an enhancement.
> (and, as the doc states, “glob uses fnmatch() to match pathname
> segments”).

This is a good reason not to push the implementation down into glob,
actually: the expansion may cross segment boundaries:


should expand to the two patterns:



Fred L. Drake, Jr.    <fdrake at gmail.com>
"A storm broke loose in my mind."  --Albert Einstein

More information about the Python-ideas mailing list