summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2018-04-04 06:06:53 (GMT)
committerGitHub <noreply@github.com>2018-04-04 06:06:53 (GMT)
commitc51d8c9ba6211d77db639487501f89aa9b4bcbb1 (patch)
treecabc297cea85143550c1755cbd9a19ec9c2c2603 /Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst
parent42ec190761a2e8503aaa06f0bfaaabe98749179b (diff)
downloadcpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.zip
cpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.tar.gz
cpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.tar.bz2
bpo-23403: Bump pickle.DEFAULT_PROTOCOL to 4 (#6355)
This makes performance better and produces shorter pickles. This change is backwards compatible up to the oldest currently supported version of Python (3.4).
Diffstat (limited to 'Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst')
-rw-r--r--Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst b/Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst
new file mode 100644
index 0000000..d1fbbeb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-04-02-16-10-12.bpo-23403.KG7ADV.rst
@@ -0,0 +1,4 @@
+``DEFAULT_PROTOCOL`` in :mod:`pickle` was bumped to 4. Protocol 4 is
+described in :pep:`3154` and available since Python 3.4. It offers
+better performance and smaller size compared to protocol 3 introduced
+in Python 3.0.