Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e058280

Browse files
authored
[3.8] bpo-39435: Fix docs for pickle.loads (GH-18160) (GH-19843)
(cherry picked from commit 289842a) Co-authored-by: Shantanu <[email protected]> Automerge-Triggered-By: @pitrou
1 parent c9d7d32 commit e058280

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Doc/library/pickle.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ process more convenient:
252252
.. versionchanged:: 3.8
253253
The *buffers* argument was added.
254254

255-
.. function:: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
255+
.. function:: loads(data, \*, fix_imports=True, encoding="ASCII", errors="strict", buffers=None)
256256

257257
Return the reconstituted object hierarchy of the pickled representation
258-
*bytes_object* of an object.
258+
*data* of an object. *data* must be a :term:`bytes-like object`.
259259

260260
The protocol version of the pickle is detected automatically, so no
261261
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
@@ -769,6 +769,7 @@ Manuel Jacob
769769
David Jacobs
770770
Kevin Jacobs
771771
Kjetil Jacobsen
772+
Shantanu Jain
772773
Bertrand Janin
773774
Geert Jansen
774775
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)