diff options
author | Pieter Eendebak <pieter.eendebak@gmail.com> | 2023-09-10 07:06:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-10 07:06:08 (GMT) |
commit | 85a5d3dbe19249ba8d414d63328ae84241a35528 (patch) | |
tree | b3e8a0510e86b1f0b8f121c698c21175bd60b47b /Misc/NEWS.d | |
parent | 92578919a60ebe2b8d6d42377f1e27479c156d65 (diff) | |
download | cpython-85a5d3dbe19249ba8d414d63328ae84241a35528.zip cpython-85a5d3dbe19249ba8d414d63328ae84241a35528.tar.gz cpython-85a5d3dbe19249ba8d414d63328ae84241a35528.tar.bz2 |
gh-93627: Align Python implementation of pickle with C implementation of pickle (GH-103035)
If a method like __reduce_ex_ or __reduce__ is set to None, a TypeError is raised.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-03-26-19-11-10.gh-issue-93627.0UgwBL.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-03-26-19-11-10.gh-issue-93627.0UgwBL.rst b/Misc/NEWS.d/next/Core and Builtins/2023-03-26-19-11-10.gh-issue-93627.0UgwBL.rst new file mode 100644 index 0000000..854da44 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-03-26-19-11-10.gh-issue-93627.0UgwBL.rst @@ -0,0 +1 @@ +Update the Python pickle module implementation to match the C implementation of the pickle module. For objects setting reduction methods like :meth:`~object.__reduce_ex__` or :meth:`~object.__reduce__` to ``None``, pickling will result in a :exc:`TypeError`. |