[issue26579] Support pickling slots in subclasses of common classes

2022-04-07 Thread STINNER Victor
STINNER Victor added the comment: > bpo-26579: Add object.__getstate__(). (GH-2821) > https://github.com/python/cpython/commit/884eba3c76916889fd6bff3b37b8552bfb4f9566 This change introduced reference leaks: see bpo-47250. -- ___ Python tracker

[issue26579] Support pickling slots in subclasses of common classes

2022-04-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.7 ___ Python tracker ___

[issue26579] Support pickling slots in subclasses of common classes

2022-04-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 884eba3c76916889fd6bff3b37b8552bfb4f9566 by Serhiy Storchaka in branch 'main': bpo-26579: Add object.__getstate__(). (GH-2821) https://github.com/python/cpython/commit/884eba3c76916889fd6bff3b37b8552bfb4f9566 --

[issue26579] Support pickling slots in subclasses of common classes

2017-11-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -4360 ___ Python tracker ___

[issue26579] Support pickling slots in subclasses of common classes

2017-11-15 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +4360 ___ Python tracker ___ ___

[issue26579] Support pickling slots in subclasses of common classes

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +haypo, r.david.murray versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue26579] Support pickling slots in subclasses of common classes

2017-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2873 ___ Python tracker ___ ___

[issue26579] Support pickling slots in subclasses of common classes

2016-07-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: An alternative way is to expose a default state as object.__getstate__(). It is more efficient since it is implemented in C. Following patch implements this approach. -- Added file: http://bugs.python.org/file43716/object_getstate.patch

[issue26579] Support pickling slots in subclasses of common classes

2016-06-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with current sources. -- Added file: http://bugs.python.org/file43462/copyreg_getstate2.patch ___ Python tracker

[issue26579] Support pickling slots in subclasses of common classes

2016-03-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue26579] Support pickling slots in subclasses of common classes

2016-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pickling and copying instances of subclasses of some basic classes pickles and copies instance attributes. Example: >>> class BA(bytearray): ... pass ... >>> b = BA(b'abc') >>> b.x = 10 >>> c = copy.copy(b) >>> c.x 10 >>> c =