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

Barney Gale report at bugs.python.org
Sat Mar 7 22:52:39 EST 2020


New submission from Barney Gale <barney.gale at gmail.com>:

`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 work on a file descriptor level.

----------
components: Library (Lib)
messages: 363631
nosy: barneygale
priority: normal
severity: normal
status: open
title: `pathlib.Path.touch()` calls `os.close()` without using accessor
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39895>
_______________________________________


More information about the New-bugs-announce mailing list