diff options
author | Shantanu <hauntsaninja@users.noreply.github.com> | 2020-05-01 19:46:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 19:46:01 (GMT) |
commit | 289842ae820f99908d3a345f1f3b6d4e5b4b97fc (patch) | |
tree | 2a935029fdf4150325c7e2988dcd2241fd1a099d /Doc | |
parent | 64224a4727321a8dd33e6f769edda401193ebef0 (diff) | |
download | cpython-289842ae820f99908d3a345f1f3b6d4e5b4b97fc.zip cpython-289842ae820f99908d3a345f1f3b6d4e5b4b97fc.tar.gz cpython-289842ae820f99908d3a345f1f3b6d4e5b4b97fc.tar.bz2 |
bpo-39435: Fix docs for pickle.loads (GH-18160)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/pickle.rst | 4 |
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 |