This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author crusaderky
Recipients crusaderky, docs@python
Date 2020-01-23.17:12:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579799539.42.0.511265830635.issue39435@roundup.psfhosted.org>
In-reply-to
Content
(1)
In the documentation for loads(), the name for the first argument of loads is 'bytes_object'. The actual signature, both in pickle.py and _pickle.c, it is instead 'data'.

(2)
In the documentation and in pickle.py, the default value for the 'buffers' parameter is None. However, in _pickle.c, it is an empty tuple (); this is also reflected by running the interpreter:

In [1]: inspect.signature(pickle.loads).parameters['buffers']                                                                                                                                                                                                    
Out[1]: <Parameter "buffers=()">

Thanks to @hauntsaninja for spotting these in https://github.com/python/typeshed/pull/3636
History
Date User Action Args
2020-01-23 17:12:19crusaderkysetrecipients: + crusaderky, docs@python
2020-01-23 17:12:19crusaderkysetmessageid: <1579799539.42.0.511265830635.issue39435@roundup.psfhosted.org>
2020-01-23 17:12:19crusaderkylinkissue39435 messages
2020-01-23 17:12:19crusaderkycreate