[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset c22879914b03ff2da768e557b5c00e9c8c62c695 by Miss Islington (bot) in branch '3.8': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/c22879914b03ff2da768e557b5c00e9c8c62c695 -

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
miss-islington added the comment: New changeset b1b1d5ff11108620f5bc97976bb889f5cbb24373 by Miss Islington (bot) in branch '3.7': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/b1b1d5ff11108620f5bc97976bb889f5cbb24373 -

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +18287 pull_request: https://github.com/python/cpython/pull/18935 ___ Python tracker ___ __

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +18286 pull_request: https://github.com/python/cpython/pull/18934 ___ Python tracker _

[issue39916] More reliable use of scandir in Path.glob()

2020-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 704e2065f8b8021a4a6999470fb6ed3453f7679e by Serhiy Storchaka in branch 'master': bpo-39916: Use os.scandir() as context manager in Path.glob(). (GH-18880) https://github.com/python/cpython/commit/704e2065f8b8021a4a6999470fb6ed3453f7679e

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18237 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18880 ___ Python tracker ___

[issue39916] More reliable use of scandir in Path.glob()

2020-03-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Path.glob() uses os.scandir() in the following code. entries = list(scandir(parent_path)) It properly closes the internal file descriptor opened by scandir() if success because it is automatically closed closed when the iterator is exhausted. But if