Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Paths are ordered by lexicographical order of their corresponding components. Paths are not strings, and this this order is more natural for them.
The alphabetical order of Path strings: SPAMS.txt SPAM\file.txt spam\file.txt spams.txt spam-file.txt spam/file.txt spam_file.txt The lexicographical order of Path components: SPAM\file.txt SPAMS.txt spam\file.txt spams.txt spam/file.txt spam-file.txt spam_file.txt ---------- nosy: +serhiy.storchaka resolution: -> not a bug _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32040> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com