Message254565
From the bash man-page: "... If one of these characters appears, then the word is regarded as a pattern, and replaced with an *alphabetically sorted* list of filenames matching the pattern".
I would agree that glob.glob shouldn't sort its results (the overhead may be substantial, and there are plenty of use-cases that don't require sorting), but given that the documented behaviour is at odds (implicitly via the shell's documentation) with the implemented behaviour I would argue that it is premature to close this without at least adding a note to the Python docs.
(P.S. in case my comment is received poorly, I'm not the original author of this ticket, and no aspersions should be cast upon drj for my possibly foolish views!) |
|
Date |
User |
Action |
Args |
2015-11-12 22:22:40 | Dave Jones | set | recipients:
+ Dave Jones, eric.smith, drj, r.david.murray, Jim.Jewett, serhiy.storchaka |
2015-11-12 22:22:40 | Dave Jones | set | messageid: <1447366960.6.0.763843200417.issue21748@psf.upfronthosting.co.za> |
2015-11-12 22:22:40 | Dave Jones | link | issue21748 messages |
2015-11-12 22:22:40 | Dave Jones | create | |
|