Message154600
| Author |
elsdoerfer |
| Recipients |
eli.bendersky, elsdoerfer, eric.araujo, giampaolo.rodola, ncoghlan, pitrou, r.david.murray, rhettinger, ubershmekel |
| Date |
2012年02月29日.07:56:34 |
| SpamBayes Score |
6.8426025e-09 |
| Marked as misclassified |
No |
| Message-id |
<1330502195.53.0.6834423126.issue13968@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This should absolutely be implemented as **:
- It is pretty much standard. Recursive globbing is not supported everywhere, but when it is, ** is used.
- A separate function will not allow me to let the *user* to decide when recursion should be used. I find this most important. When I need to find files internally, I always do so using os.walk etc. When I use glob, it is because I want to provide an interface to my users.
- The change to support ** is actually pretty trivial. I have implemented this as a module here: https://github.com/miracle2k/python-glob2/
- It's backwards-compatible - or close enough anyway. ** is currently perfectly nonsensical, making it a meaningful syntax element is acceptable, I think. |
|