Author pitrou
Recipients alexandre.vassalotti, amaury.forgeotdarc, belopolsky, nyevik, pitrou
Date 2011-03-15.23:05:52
SpamBayes Score 1.67044e-09
Marked as misclassified No
Message-id <1300230353.38.0.0540268603526.issue11564@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-15 23:05:53pitrousetrecipients: + pitrou, amaury.forgeotdarc, belopolsky, alexandre.vassalotti, nyevik
2011-03-15 23:05:53pitrousetmessageid: <1300230353.38.0.0540268603526.issue11564@psf.upfronthosting.co.za>
2011-03-15 23:05:52pitroulinkissue11564 messages
2011-03-15 23:05:52pitroucreate