python 2.7.12 on Linux behaving differently than on Windows

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Dec 8 01:20:01 EST 2016


BartC wrote:
> And globbing doesn't take care of all of it: a Linux program still has 
> to iterate over a loop of filenames. The same as on Windows, except the 
> latter will need to call a function to deliver the next filename.

Actually, most of them will require *two* loops, one to
iterate over a sequence of filespecs, and another for
the files matching each filespec.

Whereas the unix program only requires one loop.

-- 
Greg


More information about the Python-list mailing list