mirror of
https://github.com/python/cpython.git
synced 2024-11-30 18:51:15 +01:00
5ca4e34bc1
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.
3 lines
86 B
ReStructuredText
3 lines
86 B
ReStructuredText
:class:`super` objects are now :mod:`pickleable <pickle>` and
|
|
:mod:`copyable <copy>`.
|