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 serhiy.storchaka
Recipients Dave Jones, Jim.Jewett, drj, eric.smith, r.david.murray, serhiy.storchaka
Date 2015-11-13.09:30:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is nothing special with glob(). By default the ls command outputs sorted list of files, but os.listdir() doesn't. Python is just lower-level language than Posix shell. You always can call sort() on result.

It is easy to just add sort() after calling os.listdir() in current glob() implementation. It shouldn't significantly affect performance. I would support this feature. But I'm planning to implement glob() with os.scandir(), and it is not so easy to support sorting in that implementation.
Date User Action Args
2015-11-13 09:30:47serhiy.storchakasetrecipients: + serhiy.storchaka, eric.smith, drj, r.david.murray, Jim.Jewett, Dave Jones
2015-11-13 09:30:46serhiy.storchakasetmessageid: <>
2015-11-13 09:30:46serhiy.storchakalinkissue21748 messages
2015-11-13 09:30:46serhiy.storchakacreate