This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients Arfrever, alexandre.vassalotti, asvetlov, neologix, pitrou, rhettinger, serhiy.storchaka
Date 2013-05-03.18:39:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367606360.15.0.950380721792.issue17810@psf.upfronthosting.co.za>
In-reply-to
Content
Those methods wouldn't be much more a maintenance burden than the special cases already present in the implementation of __reduce__. These methods would only need to be provided by classes that wishes to support efficient in-place pickling provided by protocol 4. As such, this approach better as it would rely on duck typing rather than concrete type checks, which IMHO do not belong in the default object implementation.

Plus, having this generic API would allow pickle to share the same pickling and unpickling code for lists, dicts, sets and other mutable collections.
History
Date User Action Args
2013-05-03 18:39:20alexandre.vassalottisetrecipients: + alexandre.vassalotti, rhettinger, pitrou, Arfrever, asvetlov, neologix, serhiy.storchaka
2013-05-03 18:39:20alexandre.vassalottisetmessageid: <1367606360.15.0.950380721792.issue17810@psf.upfronthosting.co.za>
2013-05-03 18:39:20alexandre.vassalottilinkissue17810 messages
2013-05-03 18:39:19alexandre.vassalotticreate