Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

In pickle.py the name of the first parameter is "s" (it was "str" in 2.7), not 
"data". And in the module docstring it is "string". So we have two options:

1. Make the first parameter positional-only. This is not breaking change 
because the documentation and two implementations had four different names, so 
there was no official way to pass it by keyword.

2. Make it positional-and-keyword parameter officially. All implementations, 
documentation and docstrings should be synchronized.

What is more preferable? Do we need to pass the first argument to 
pickle.loads() by keyword?

After resolving this issue we may want to revise other modules which have the 
loads() function.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39435>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to