
Sept. 17, 2020
3:06 p.m.
On the other hand, the fact that we might be adding two new functions to four different modules is, in my mind, and argument for overloading the existing dump() / load() instead. a lot less API churn.
I also believe that overloading is the better option here. The whole point of this change is to make a very frequent operation more convenient, and having to keep in mind two distinct pairs of functions, which only differ in the type of the first argument and a few minor things, is less convenient than just using the same functions for both file objects and paths. Besides, I don't understand what the downside of overloading is, apart from purism (?).