| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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.
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
|
|
||
| pickle(type(int | str), pickle_union) | ||
|
|
||
| def pickle_super(obj): |
There was a problem hiding this comment.
Should we give this a private name? All the existing ones also use public names, so I don't mind keeping this one public too.
Sorry, something went wrong.
|
Thank you for your suggestions and review @JelleZijlstra. |
Sorry, something went wrong.
…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.
| Back | FazBrowse Home | New Git URL |
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.
📚 Documentation preview 📚: https://cpython-previews--125781.org.readthedocs.build/