Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 330 Bytes

2023-12-23-16-51-17.gh-issue-113028.3Jmdoj.rst

File metadata and controls

6 lines (6 loc) · 330 Bytes

When a second reference to a string appears in the input to :mod:`pickle`, and the Python implementation is in use, we are guaranteed that a single copy gets pickled and a single object is shared when reloaded. Previously, in protocol 0, when a string contained certain characters (e.g. newline) it resulted in duplicate objects.