Nov. 19, 2019
5:57 p.m.
On Nov 19, 2019, at 09:40, Rhodri James <rhodri@kynesim.co.uk> wrote:
How about using Paths as file context managers? Just an idle thought.
Then how do you open a Path for writing, or in binary mode, etc.? Adding a Path.opening method that returns an file-on-enter context manager instead of a file would probably work. But is that better than an opening function that takes a Path (or any of the other valid arguments to open) as its first argument?