[issue11564] pickle not 64-bit ready

Antoine Pitrou report at bugs.python.org
Wed Mar 16 00:05:53 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

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.

----------
nosy: +alexandre.vassalotti, amaury.forgeotdarc, belopolsky, pitrou
title: pickle limits most datatypes -> pickle not 64-bit ready
versions: +Python 3.1, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11564>
_______________________________________


More information about the Python-bugs-list mailing list