Skip to content

Conversation

nedbat
Copy link
Member

@nedbat nedbat commented Oct 16, 2025

Comment on lines +28 to +31
.. note::
The pathnames are returned in no particular order. If you need a specific
order, sort the results.

Copy link
Contributor

@nineteendo nineteendo Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already "although results are returned in arbitrary order" in the paragraph above. Can you remove that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it’s ok to repeat the point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already repeated twice:

"although results are returned in arbitrary order." (9f3c094)
"Whether or not the results are sorted depends on the file system." (52465e1)

The note directive is used to highlight non-obvious details that may require additional attention from the user. If you think this is the case, then this directive should also be used for os.listdir() and os,scandir().

Comment on lines +28 to +31
.. note::
The pathnames are returned in no particular order. If you need a specific
order, sort the results.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it’s ok to repeat the point.

@Gerardwx
Copy link
Contributor

Please don’t. Docs already say order is file system dependent. Brevity is inherently valuable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants