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.mo...@gmail.com> wrote:
> On 27 March 2017 at 15:33, Donald Stufft <don...@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 >
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/