R. David Murray added the comment:

Technically the docs are not wrong: "matches files according to the rules of 
the shell" does not say anything about sorting (matching is separate from what 
is done with the matched filenames; the shell sorts them and inserts them in 
place, python returns an unsorted list).  It also mentions using listdir, which 
is documented as unsorted.

That said, it would be reasonable to insert a disclaimer that the returned 
results are unsorted, unlike the shell.  If you want to open an new issue with 
a proposed doc patch, that would be fine.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21748>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to