Sept. 16, 2020
5:08 p.m.
On Thu, Sep 17, 2020 at 9:53 AM <lammenspaolo@gmail.com> wrote:
Maybe unrelated, but the same goes for `pickle.load` and `pickle.dump`. For consistencies, any changes made to `json.load` and `json.dump` (e.g. adding `json.loadf` and `json.dumpf` or accepting a path like as argument) should be also applied equivalently to `pickle.load` and `pickle.dump`.
Off the top of my head, I can't think of any more places in the standard library with the same parallel structure.
marshal is the other one in that set, and a quick 'git grep' shows that plistlib also has that API. The xmlrpc.client module also has dumps/loads, but not dump/load. ChrisA