Antoine Pitrou <pit...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue11564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com