diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-10-21 18:30:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-21 18:30:45 (GMT) |
commit | 5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8 (patch) | |
tree | d4f4dc4e80de809d695247c749a3ac50340ef78e /Python/codegen.c | |
parent | de5a6c7c7d00ac37d66cba9849202b374e9cdfb7 (diff) | |
download | cpython-5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8.zip cpython-5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8.tar.gz cpython-5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8.tar.bz2 |
gh-125767: Fix pickling and copying of super objects (GH-125781)
Previously, copying a super object returned a copy of the instance
invoking super(). Pickling a super object could pickle the instance
invoking super() or fail, depending on its type and protocol.
Now deep copying returns a new super object and pickling pickles the super
object. Shallow copying returns the same super object.
Diffstat (limited to 'Python/codegen.c')
0 files changed, 0 insertions, 0 deletions