summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-05-02 06:38:01 (GMT)
committerGitHub <noreply@github.com>2020-05-02 06:38:01 (GMT)
commit531d1e541284bfd7944f8c66a5e8c3c3234afaff (patch)
tree877a425117074ca43bc46db97a145a53f34dcebb /Doc
parentd2baff4301387e232495491f7291903cc1217d21 (diff)
downloadcpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.zip
cpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.tar.gz
cpython-531d1e541284bfd7944f8c66a5e8c3c3234afaff.tar.bz2
bpo-39435: Make the first argument of pickle.loads() positional-only. (GH-19846)
It was positional-only de facto: documentation and two implementations used three different name.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pickle.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index d92e947..b7c3452 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -252,7 +252,7 @@ process more convenient:
.. versionchanged:: 3.8
The *buffers* argument was added.
-.. function:: loads(data, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
+.. function:: loads(data, /, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
Return the reconstituted object hierarchy of the pickled representation
*data* of an object. *data* must be a :term:`bytes-like object`.