Chris Angelico wrote:
> Why do you want dump and load to take parameters from "somewhere
> else"? 

Because developers of libraries don't think about configuring json.dump method 
in mos of cases. I would like to have a mechanism that would allow tweaking the 
behaviour for the entire program. I just don't know how best to do it. The idea 
with the configuration via the context manager seems to me to be good. I know 
exactly what code will be patched and I can catch the bug.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@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/SVJ5Q4JSK3WVWZ63K4SQ7LB6GDNIYCEB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to