27 Mar
2017
27 Mar
'17
2:40 p.m.
Another idea: Maybe make json.load and json.dump support Path objects? On Mon, Mar 27, 2017 at 4:36 PM, Paul Moore <p.f.moore@gmail.com> wrote:
On 27 March 2017 at 15:33, Donald Stufft <donald@stufft.io> wrote:
What do you think about adding methods pathlib.Path.write_json and pathlib.Path.read_json , similar to write_text, write_bytes, read_text, read_bytes?
-1, I also think that write_* and read_* were mistakes to begin with.
Text is (much) more general-use than JSON. Paul