On Thu, Nov 28, 2019 at 02:06:08PM +0400, Abdur-Rahmaan Janhangeer wrote:
> It's about ambiguity. Maybe loads is short for load string which in english
> is also a verb.
True. It took me a long time to stop getting confused between
pickle.load and .loads until I stopped reading it as "loads" and started
reading it as "load-s(tring)".
I agree with you that this is a sub-optimal naming convention, and we
would have been better if a different choice was made at the beginning.
But unfortunately it is a widely used naming convention:
* pickle
* marshall
* json
* yaml (I think)
* and probably more
and not just in Python. But I agree with the others that the pain and
disruption from changing it is greater than the benefit. We all just
have to memorise that "loads" means "load-string" and not the present
tense of load.
--
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@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/FVP522GAT6EMIZP36BKRULCXCJCUEHCC/
Code of Conduct: http://python.org/psf/codeofconduct/