This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dave Jones
Recipients Dave Jones, Jim.Jewett, drj, eric.smith, r.david.murray, serhiy.storchaka
Date 2015-11-12.22:22:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:40Dave Jonessetrecipients: + Dave Jones, eric.smith, drj, r.david.murray, Jim.Jewett, serhiy.storchaka
2015-11-12 22:22:40Dave Jonessetmessageid: <>
2015-11-12 22:22:40Dave Joneslinkissue21748 messages
2015-11-12 22:22:40Dave Jonescreate