New submission from Barney Gale <barney.g...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39895>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to