17 Aug
2010
17 Aug
'10
6:14 a.m.
On Tue, Aug 17, 2010 at 9:03 AM, Antoine Pitrou <solipsis@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: for{bar/turtle,car/monkey}_test.* should expand to the two patterns: foobar/turtle_test.* foocar/monkey_test.* -Fred -- Fred L. Drake, Jr. <fdrake at gmail.com> "A storm broke loose in my mind." --Albert Einstein