summaryrefslogtreecommitdiffstats
path: root/Doc/library/pickle.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2020-05-01 19:54:44 (GMT)
committerGitHub <noreply@github.com>2020-05-01 19:54:44 (GMT)
commite05828055e5165cc7268ea3bea33adc502e054a1 (patch)
treedfd60cebfbfe8a97ffc2086910ab2f357708b715 /Doc/library/pickle.rst
parentc9d7d32b6dc6140f7fcbf1ae1120df6d59fc28d0 (diff)
downloadcpython-e05828055e5165cc7268ea3bea33adc502e054a1.zip
cpython-e05828055e5165cc7268ea3bea33adc502e054a1.tar.gz
cpython-e05828055e5165cc7268ea3bea33adc502e054a1.tar.bz2
[3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)
(cherry picked from commit 289842a) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Automerge-Triggered-By: @pitrou
Diffstat (limited to 'Doc/library/pickle.rst')
-rw-r--r--Doc/library/pickle.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index a7b92bb..d92e947 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -252,10 +252,10 @@ process more convenient:
.. versionchanged:: 3.8
The *buffers* argument was added.
-.. function:: loads(bytes_object, \*, 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
- *bytes_object* of an object.
+ *data* of an object. *data* must be a :term:`bytes-like object`.
The protocol version of the pickle is detected automatically, so no
protocol argument is needed. Bytes past the pickled representation