[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.9 ___ Python tracker ___

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 986da8effcd2e9e9334ae016928ef795fb93c373 by Barney Gale in branch 'master': bpo-39895: Move `pathlib.Path.touch()` implementation into the path accessor. (GH-18838) https://github.com/python/cpython/commit/986da8effcd2e9e9334ae016928ef795fb93c373

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18195 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18838 ___ Python tracker ___

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `Path.touch()` does a lot of os-specific /stuff/ that should probably live in the accessor. Perhaps most importantly, is calls `os.close()` on whatever `accessor.open()` returns, which is problematic for those wishing to write their own accessor that doesn't