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 serhiy.storchaka
Recipients alexandre.vassalotti, pitrou, prinsherbert, serhiy.storchaka
Date 2015-10-23.10:12:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445595134.39.0.414765557068.issue25465@psf.upfronthosting.co.za>
In-reply-to
Content
That is because a pickler keeps track of all pickled objects. This is needed to preserve identity and support recursive objects.

You can disable memoizing by setting the "fast" attribute of the Pickler object.

def fastdump(obj, file):
    p = pickle.Pickler(file)
    p.fast = True
    p.dump(obj)

But you can't pickle recursive objects in the "fast" mode.
History
Date User Action Args
2015-10-23 10:12:14serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, alexandre.vassalotti, prinsherbert
2015-10-23 10:12:14serhiy.storchakasetmessageid: <1445595134.39.0.414765557068.issue25465@psf.upfronthosting.co.za>
2015-10-23 10:12:14serhiy.storchakalinkissue25465 messages
2015-10-23 10:12:14serhiy.storchakacreate