summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-11-07 06:53:02 (GMT)
committerGitHub <noreply@github.com>2024-11-07 06:53:02 (GMT)
commit223d3dc554dde45f185f7f465753824c6f698b9b (patch)
tree93d4411fdafffec3b65e2e25e1fee6706fd3be1c /Misc/NEWS.d/next/Library
parent2a6b6b33dfe0f3c435abf2829b62ef3f1ef12cd3 (diff)
downloadcpython-223d3dc554dde45f185f7f465753824c6f698b9b.zip
cpython-223d3dc554dde45f185f7f465753824c6f698b9b.tar.gz
cpython-223d3dc554dde45f185f7f465753824c6f698b9b.tar.bz2
gh-125631: Enable setting persistent_id and persistent_load of pickler and unpickler (GH-125752)
pickle.Pickler.persistent_id and pickle.Unpickler.persistent_load can again be overridden as instance attributes.
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2024-10-19-11-06-06.gh-issue-125631.BlhVvR.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-19-11-06-06.gh-issue-125631.BlhVvR.rst b/Misc/NEWS.d/next/Library/2024-10-19-11-06-06.gh-issue-125631.BlhVvR.rst
new file mode 100644
index 0000000..e870abb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-10-19-11-06-06.gh-issue-125631.BlhVvR.rst
@@ -0,0 +1,4 @@
+Restore ability to set :attr:`~pickle.Pickler.persistent_id` and
+:attr:`~pickle.Unpickler.persistent_load` attributes of instances of the
+:class:`!Pickler` and :class:`!Unpickler` classes in the :mod:`pickle`
+module.