Message120082
I finally found the time to follow up on this issue, sorry for the absence of response.
The thread on Python-Ideas didn't really lead to a consensus (nor did it generate a lot of discussion).
Some wanted to see this in fnmatch, others in glob and others in shutils. Most thought glob was the appropriate place though, and this is also my opinion.
From the Python documentation, fnmatch is a « Unix filename pattern matching » while glob is a « Unix style pathname pattern expansion ».
This makes it clear to me that curly expansion has its place in glob, that would then use fnmatch to match the resulting list of expanded paths.
Here is a patch against the py3k branch.
The patch contains both the implementation, unit tests, and some changes to the documentation.
Note that could I only run the unit tests on Linux (Fedora 14 x86_64) which is the only system I have at hand. |
|
Date |
User |
Action |
Args |
2010-10-31 20:47:17 | bochecha | set | recipients:
+ bochecha, fdrake, ronaldoussoren, pitrou, eric.smith, tim.golden, kveretennicov, eric.araujo, r.david.murray |
2010-10-31 20:47:17 | bochecha | set | messageid: <1288558037.17.0.50511878051.issue9584@psf.upfronthosting.co.za> |
2010-10-31 20:47:15 | bochecha | link | issue9584 messages |
2010-10-31 20:47:15 | bochecha | create | |
|