Message315702
Great point. Looks like the phrase is "in arbitrary order" in the docs for
those (both 2.7 and 3), which is better than saying nothing. I'd still
prefer a bit more specificity about the potential gotcha since "arbitrary"
seems a lot less deterministic than "some file systems will give you sorted
order, some won't".
On Tue, Apr 24, 2018 at 9:41 AM, Serhiy Storchaka <report@bugs.python.org>
wrote:
>
> Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment:
>
> Are there such notes in the descriptions of os.listdir(), os.scandir(),
> os.walk(), os.fwalk() and corresponding Path methods? If explicitly
> document the sorting, this should be made for all files enumerating
> functions.
>
> ----------
> nosy: +serhiy.storchaka
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue33275>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2018-04-24 14:15:41 | Ben FrantzDale | set | recipients:
+ Ben FrantzDale, rhettinger, terry.reedy, docs@python, serhiy.storchaka, eryksun, cheryl.sabella |
2018-04-24 14:15:41 | Ben FrantzDale | link | issue33275 messages |
2018-04-24 14:15:41 | Ben FrantzDale | create | |
|