
7 Aug
2020
7 Aug
'20
2:24 p.m.
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.