summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/3.7.0a4.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-01-12 22:28:31 (GMT)
committerGitHub <noreply@github.com>2018-01-12 22:28:31 (GMT)
commit5b76bdba071e7bbd9fda0b9b100d1506d95c04bd (patch)
tree6330db8f2ec3db059cdad53010c11bce85b388fc /Misc/NEWS.d/3.7.0a4.rst
parentf3031b8a7ad71d3b6ed05da7f3041d9efbe773cf (diff)
downloadcpython-5b76bdba071e7bbd9fda0b9b100d1506d95c04bd.zip
cpython-5b76bdba071e7bbd9fda0b9b100d1506d95c04bd.tar.gz
cpython-5b76bdba071e7bbd9fda0b9b100d1506d95c04bd.tar.bz2
bpo-31993: Do not use memoryview when pickle large strings. (#5154)
PyMemoryView_FromMemory() created a memoryview referring to the internal data of the string. When the string is destroyed the memoryview become referring to a freed memory.
Diffstat (limited to 'Misc/NEWS.d/3.7.0a4.rst')
-rw-r--r--Misc/NEWS.d/3.7.0a4.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Misc/NEWS.d/3.7.0a4.rst b/Misc/NEWS.d/3.7.0a4.rst
index ca9aa17..a6322ed 100644
--- a/Misc/NEWS.d/3.7.0a4.rst
+++ b/Misc/NEWS.d/3.7.0a4.rst
@@ -693,9 +693,9 @@ ctypes._aix.find_library() Patch by: Michael Felt
.. nonce: -OMNg8
.. section: Library
-The picklers no longer allocate temporary memory when dumping large
-``bytes`` and ``str`` objects into a file object. Instead the data is
-directly streamed into the underlying file object.
+The pickler now uses less memory when serializing large bytes and str
+objects into a file. Pickles created with protocol 4 will require less
+memory for unpickling large bytes and str objects.
..