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

Skip to content

Commit 289842a

Browse files
authored
bpo-39435: Fix docs for pickle.loads (GH-18160)
1 parent 64224a4 commit 289842a

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
@@ -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
@@ -790,6 +790,7 @@ Manuel Jacob
790790
David Jacobs
791791
Kevin Jacobs
792792
Kjetil Jacobsen
793+
Shantanu Jain
793794
Bertrand Janin
794795
Geert Jansen
795796
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)