[Python-ideas] Add pathlib.Path.write_json and pathlib.Path.read_json

Paul Moore p.f.moore at gmail.com
Mon Mar 27 10:36:15 EDT 2017


On 27 March 2017 at 15:33, Donald Stufft <donald at 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


More information about the Python-ideas mailing list