Message131062
| Author |
pitrou |
| Recipients |
alexandre.vassalotti, amaury.forgeotdarc, belopolsky, nyevik, pitrou |
| Date |
2011年03月15日.23:05:52 |
| SpamBayes Score |
1.6704377e-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. |
|