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.
S
Serhiy Storchaka committed
5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8
Parent: de5a6c7
Committed by GitHub <noreply@github.com>
on 10/21/2024, 6:30:45 PM