[Python-ideas] Adding '**' recursive search to glob.glob (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jan 14 22:38:25 CET 2013
- Previous message: [Python-ideas] Adding '**' recursive search to glob.glob
- Next message: [Python-ideas] Adding '**' recursive search to glob.glob
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano wrote:
Rather than a flag, I suggest a version number:
glob.glob(pattern, version=1) # current behaviour, as of 3.3 glob.glob(pattern, version=2) # adds ** recursion in Python 3.4
Yuck, then the reader has to know what features are enabled by which version numbers -- not something that's easy to keep in one's head.
-- Greg
- Previous message: [Python-ideas] Adding '**' recursive search to glob.glob
- Next message: [Python-ideas] Adding '**' recursive search to glob.glob
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]