Personally prefer it to be in the json module as it just feels more logical. But that's just a personal choice.
I didn't mention about dumpf as I see a previous thread that became quite controversial (seems like dumps was a more common usage at that time).
Something I forgot to mention : A (non-exact)search for this construct in github (https://github.com/search?q=with+open+%3A+json.load&type=Code) gives 20million+ results. Seems like it's a popular set of statements that people use ...
----
The Nomadic Coder
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/R4CZ2IGLXR5NYNQDDFZZE5YB3RHD3RP6/
Code of Conduct: http://python.org/psf/codeofconduct/