summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2020-01-24 10:03:22 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-01-24 10:03:22 (GMT)
commite9652e8d58392f5022759ba06b444ce970eb12db (patch)
tree9332982a642492599d8f61d2248950f261f73858 /Lib/pickle.py
parentb9783d2e035d2babe8fcd9ec109044c0002c18a2 (diff)
downloadcpython-e9652e8d58392f5022759ba06b444ce970eb12db.zip
cpython-e9652e8d58392f5022759ba06b444ce970eb12db.tar.gz
cpython-e9652e8d58392f5022759ba06b444ce970eb12db.tar.bz2
bpo-39426: Fix outdated default and highest protocols in docs (GH-18154)
Some portions of the pickle documentation hadn't been updated for the pickle protocol changes in Python 3.8 (new protocol 5, default protocol 4). This PR fixes those docs. https://bugs.python.org/issue39426
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 01d4142..d7adc16 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -409,9 +409,9 @@ class _Pickler:
"""This takes a binary file for writing a pickle data stream.
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 4. It was introduced in Python 3.4, it is
- incompatible with previous versions.
+ given protocol; supported protocols are 0, 1, 2, 3, 4 and 5.
+ The default protocol is 4. It was introduced in Python 3.4, and
+ is incompatible with previous versions.
Specifying a negative protocol version selects the highest
protocol version supported. The higher the protocol used, the