[issue39682] pathlib.Path objects can be used as context managers

Antoine Pitrou report at bugs.python.org
Tue Mar 3 15:34:17 EST 2020


Antoine Pitrou <pitrou at free.fr> added the comment:

Note you could simply remove the "closed" flag and the context manager live. That way, you don't have to deprecate anything.

----------

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


More information about the Python-bugs-list mailing list