Message152871
>> It is. globbing is a well-known operation that many people expect to be easily done.
According to Wikipedia (http://en.wikipedia.org/wiki/Glob_%28programming%29) - "The noun "glob" is used to refer to a particular pattern, e.g. "use the glob *.log to match all those log files"".
IOW, globbing is usually understood as the act of expanding a pattern to the files it matches. Nothing in that implies recursive traversal of a directory tree. On the other hand, os.walk and/or walkdir suggest that in their name.
>> Which "Python spirit" are you talking about? We have many high-level
tools in the stdlib.
There should be one -- and preferably only one -- obvious way to do it.
Admittedly, we already have more than one, and a high-level tool is proposed with Nick's walkdir. Why add *yet another* high-level tool? |
|
Date |
User |
Action |
Args |
2012-02-08 15:43:21 | eli.bendersky | set | recipients:
+ eli.bendersky, ncoghlan, pitrou, giampaolo.rodola, eric.araujo, ubershmekel |
2012-02-08 15:43:21 | eli.bendersky | set | messageid: <1328715801.22.0.217839127365.issue13968@psf.upfronthosting.co.za> |
2012-02-08 15:43:20 | eli.bendersky | link | issue13968 messages |
2012-02-08 15:43:20 | eli.bendersky | create | |
|