[issue39682] pathlib.Path objects can be used as context managers
Antoine Pitrou
report at bugs.python.org
Mon Mar 2 18:52:49 EST 2020
Antoine Pitrou <pitrou at free.fr> added the comment:
As with the Accessor abstraction, the original idea was to support Path objects backed by a directory file descriptor (for use with openat() and friends). That idea was abandoned but it looks like the context manager stayed. It's certainly not useful currently.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39682>
_______________________________________
More information about the Python-bugs-list
mailing list