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

Philipp A. flying-sheep at web.de
Mon Mar 27 11:51:19 EDT 2017


Ram Rachum <ram at rachum.com> schrieb am Mo., 27. März 2017 um 16:42 Uhr:

> Another idea: Maybe make json.load and json.dump support Path objects?
>

yes, all string-path expecting stdlib APIs should support PEP 519

https://www.python.org/dev/peps/pep-0519/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170327/e27dd177/attachment.html>


More information about the Python-ideas mailing list