Skip to content

Commit 3859b1a

Browse files
authored
[3.7] bpo-39435: Fix docs for pickle.loads (GH-18160). (GH-19844)
(cherry picked from commit 289842a) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> Automerge-Triggered-By: @pitrou
1 parent 48ef06b commit 3859b1a

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/pickle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ process more convenient:
242242
instances of :class:`~datetime.datetime`, :class:`~datetime.date` and
243243
:class:`~datetime.time` pickled by Python 2.
244244

245-
.. function:: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict")
245+
.. function:: loads(data, \*, fix_imports=True, encoding="ASCII", errors="strict")
246246

247247
Return the reconstituted object hierarchy of the pickled representation
248-
*bytes_object* of an object.
248+
*data* of an object. *data* must be a :term:`bytes-like object`.
249249

250250
The protocol version of the pickle is detected automatically, so no
251251
protocol argument is needed. Bytes past the pickled representation

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ Manuel Jacob
746746
David Jacobs
747747
Kevin Jacobs
748748
Kjetil Jacobsen
749+
Shantanu Jain
749750
Bertrand Janin
750751
Geert Jansen
751752
Jack Jansen
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix an incorrect signature for :func:`pickle.loads` in the docs

0 commit comments

Comments
 (0)