[3.12] gh-113028: Correctly memoize str in pickle when escapes added (GH-113436) (GH-113448)
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 08398631a0298dcf785ee7bd0e26c7844823ce59) Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
M
Miss Islington (bot) committed
269cb342ad487c7c244659bd25ed6d4d7bb95876
Parent: 15ea4a4
Committed by GitHub <noreply@github.com>
on 12/24/2023, 10:01:08 AM