Message273795
cPickle fails on large objects, throwing a SystemError exception which is cryptic.
The issue was fixed for pickle in python 3 back in 2011 (http://bugs.python.org/issue11564), but never addressed in 2.7. It seems to be a recurring complaint (e.g., http://bugs.python.org/issue11872), but always seems to be closed without being fixed or explained why it cannot be fixed.
Test case from 2011 still fails:
>>> import cPickle; cPickle.dumps('a' * (2 ** 31),-1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: error return without exception set |
|
Date |
User |
Action |
Args |
2016-08-27 19:16:24 | robert@smithpierce.net | set | recipients:
+ robert@smithpierce.net |
2016-08-27 19:16:24 | robert@smithpierce.net | set | messageid: <1472325384.28.0.119216785398.issue27880@psf.upfronthosting.co.za> |
2016-08-27 19:16:24 | robert@smithpierce.net | link | issue27880 messages |
2016-08-27 19:16:24 | robert@smithpierce.net | create | |
|