]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113028: Correctly memoize str in pickle when escapes added (GH-113436)
authorJeff Allen <ja.py@farowl.co.uk>
Sun, 24 Dec 2023 09:43:44 +0000 (09:43 +0000)
committerGitHub <noreply@github.com>
Sun, 24 Dec 2023 09:43:44 +0000 (11:43 +0200)
commit08398631a0298dcf785ee7bd0e26c7844823ce59
treef669f700f6f6b5b91d59825045c00f7dbae4e408
parent894f0e573d9eb49cd5864c44328f10a731852dab
gh-113028: Correctly memoize str in pickle when escapes added (GH-113436)

This fixes a divergence between the Python and C implementations of pickle
for protocol 0, such that it pickle.py fails to re-use the first pickled
representation of strings involving characters that have to be escaped.
Lib/pickle.py
Lib/test/pickletester.py
Misc/NEWS.d/next/Library/2023-12-23-16-51-17.gh-issue-113028.3Jmdoj.rst [new file with mode: 0644]