[Python-ideas] Add pathlib.Path.write_json and pathlib.Path.read_json
Ram Rachum
ram at rachum.com
Mon Mar 27 10:40:52 EDT 2017
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 at gmail.com> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170327/d75985a2/attachment.html>
More information about the Python-ideas
mailing list