It was enough of a benefit for text (and I never forget the argument order for 
writing text to a file, unlike json.dump(file_or_data?, data_or_file?) )

+1

Top-posted from my Windows Phone

-----Original Message-----
From: "Paul Moore" <[email protected]>
Sent: ‎3/‎27/‎2017 5:57
To: "Ram Rachum" <[email protected]>
Cc: "python-ideas" <[email protected]>
Subject: Re: [Python-ideas] Add pathlib.Path.write_json 
andpathlib.Path.read_json

On 27 March 2017 at 13:50, Ram Rachum <[email protected]> wrote:
> This would make writing / reading JSON to a file a one liner instead of a
> two-line with clause.

That hardly seems like a significant benefit...

Paul
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to