[issue41284] High Level API for json file parsing

Serhiy Storchaka report at bugs.python.org
Sun Jul 12 11:52:30 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

json.load() is already a high level API. json.JSONDecoder is more low level API.

Not every two lines of code should be added as a function in the stdlib. Also, such API would be too complex because you would need to combine parameters of open() (8 parameters) and json.load() (7 parameters). If you use these two lines many times in your code you can just add a simple function that supports only options needed for you.

----------
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41284>
_______________________________________


More information about the Python-bugs-list mailing list