Message253374
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. |
|
Date |
User |
Action |
Args |
2015-10-23 10:12:14 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, alexandre.vassalotti, prinsherbert |
2015-10-23 10:12:14 | serhiy.storchaka | set | messageid: <1445595134.39.0.414765557068.issue25465@psf.upfronthosting.co.za> |
2015-10-23 10:12:14 | serhiy.storchaka | link | issue25465 messages |
2015-10-23 10:12:14 | serhiy.storchaka | create | |
|