Browse Source

bpo-39435: Fix docs for pickle.loads (GH-18160)

pull/19846/head
Shantanu 6 years ago
committed by GitHub
parent
commit
289842ae82
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Doc/library/pickle.rst
  2. 1
      Misc/ACKS
  3. 1
      Misc/NEWS.d/next/Documentation/2020-01-24-05-42-57.bpo-39435.EFcdFU.rst

4
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

1
Misc/ACKS

@ -790,6 +790,7 @@ Manuel Jacob
David Jacobs
Kevin Jacobs
Kjetil Jacobsen
Shantanu Jain
Bertrand Janin
Geert Jansen
Jack Jansen

1
Misc/NEWS.d/next/Documentation/2020-01-24-05-42-57.bpo-39435.EFcdFU.rst

@ -0,0 +1 @@
Fix an incorrect signature for :func:`pickle.loads` in the docs
Loading…
Cancel
Save