Message131062
Indeed:
>>> s = b'a' * (2**31)
>>> d = pickle.dumps(s)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: error return without exception set
There are two aspects to this:
- (bugfix) raise a proper exception when an object too large for handling by pickle is given
- (feature) improve the pickle protocol to handle objects larger than (2**31-1) elements
The improvement to the pickle protocol should probably be considered along other improvements, because we don't want to create a new protocol too often.
See also issue9614. |
|
Date |
User |
Action |
Args |
2011-03-15 23:05:53 | pitrou | set | recipients:
+ pitrou, amaury.forgeotdarc, belopolsky, alexandre.vassalotti, nyevik |
2011-03-15 23:05:53 | pitrou | set | messageid: <1300230353.38.0.0540268603526.issue11564@psf.upfronthosting.co.za> |
2011-03-15 23:05:52 | pitrou | link | issue11564 messages |
2011-03-15 23:05:52 | pitrou | create | |
|