On 03/27/2017 08:04 AM, Steven D'Aprano wrote:
On Mon, Mar 27, 2017 at 02:50:38PM +0200, Ram Rachum 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?

That's not pathlib's responsibility, and there is nothing wrong with
writing two lines of code.

+1

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to