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 Ben FrantzDale
Recipients Ben FrantzDale
Date 2018-04-13.18:38:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1523644726.46.0.682650639539.issue33275@psf.upfronthosting.co.za>
In-reply-to
Content
The sortedness of glob.glob's output is platform-dependent. While the docs do not mention sorting, and so are strictly correct, if you are on a platform where its output is sorted, it's easy to believe that the output is always sorted.

I propose we a Note maybe next to "Note: Using the “**” pattern in large directory trees may consume an inordinate amount of time." that says "Note: While the output of glob.glob may be sorted on some architectures, ordering is not guaranteed. Use `sort(glob.glob(...))` if ordering is important."

This wrong assumption burned us when scripts inexplicably stopped working on OSX High Sierra.
History
Date User Action Args
2018-04-13 18:38:46Ben FrantzDalesetrecipients: + Ben FrantzDale
2018-04-13 18:38:46Ben FrantzDalesetmessageid: <1523644726.46.0.682650639539.issue33275@psf.upfronthosting.co.za>
2018-04-13 18:38:46Ben FrantzDalelinkissue33275 messages
2018-04-13 18:38:46Ben FrantzDalecreate