[issue24013] Improve os.scandir() and DirEntry documentation

2015-05-15 Thread STINNER Victor
STINNER Victor added the comment: > 8. Added "Availability: Unix, Windows." to scandir docs like listdir and most > other os functions have. That's wrong: availability should only be explained when a function is not always available. os.listdir() and os.scandir() are always available. I made

[issue24013] Improve os.scandir() and DirEntry documentation

2015-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7c7431f91b2 by Victor Stinner in branch 'default': Closes #24013: Improve os.scandir() and DirEntry documentation https://hg.python.org/cpython/rev/e7c7431f91b2 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open ->

[issue24013] Improve os.scandir() and DirEntry documentation

2015-04-19 Thread Ben Hoyt
New submission from Ben Hoyt: Victor Stinner's documentation for os.scandir and DirEntry is a great start (https://docs.python.org/dev/library/os.html#os.scandir), however there are a few mistakes in it, and a few ways I think it could be improved. Attaching a patch with the following overall