[New-bugs-announce] [issue39426] Pickler docstring misstates default and highest protocols

Mark Dickinson report at bugs.python.org
Wed Jan 22 13:40:01 EST 2020


New submission from Mark Dickinson <dickinsm at gmail.com>:

>From the pickle.Pickler docstring:

> The optional *protocol* argument tells the pickler to use the given
> protocol; supported protocols are 0, 1, 2, 3 and 4.  The default
> protocol is 3; a backward-incompatible protocol designed for Python 3.

That's out of date since Python 3.8, where the default protocol is 4 and the highest available is 5. For future-proofing, it may be worth rewording the docstring to refer directly to the DEFAULT_PROTOCOL and HIGHEST_PROTOCOL constants.

----------
assignee: docs at python
components: Documentation
messages: 360497
nosy: docs at python, mark.dickinson, pitrou
priority: normal
severity: normal
status: open
title: Pickler docstring misstates default and highest protocols
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39426>
_______________________________________


More information about the New-bugs-announce mailing list