> 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 (?).
_______________________________________________
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/QIHTXSFUQ66YVSVSMC5ZR47VET4NT7SO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to