Skip to content

[3.11] gh-113028: Correctly memoize str in pickle when escapes added (GH-113436)#113449

Merged
serhiy-storchaka merged 1 commit intopython:3.11from
miss-islington:backport-0839863-3.11
Dec 24, 2023
Merged

[3.11] gh-113028: Correctly memoize str in pickle when escapes added (GH-113436)#113449
serhiy-storchaka merged 1 commit intopython:3.11from
miss-islington:backport-0839863-3.11

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 24, 2023

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.
(cherry picked from commit 0839863)

Co-authored-by: Jeff Allen ja.py@farowl.co.uk

…ythonGH-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.
(cherry picked from commit 0839863)

Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants