[issue11564] pickle not 64-bit ready
Alexander Belopolsky
report at bugs.python.org
Thu Mar 17 00:10:09 CET 2011
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Wed, Mar 16, 2011 at 6:59 PM, Antoine Pitrou <report at bugs.python.org> wrote:
..
>>
>> What would be the "proper exception" here?
>
> OverflowError. This is the exception that gets raised when some
> user-supplied value exceeds some internal limit.
I don't think so. OverflowError is a subclass of ArithmeticError and
is raised when result of an arithmetic operation cannot be represented
by the python type. For example,
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: (34, 'Result too large')
I don't think failing pickle dump should raise an ArithmeticError.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11564>
_______________________________________
More information about the Python-bugs-list
mailing list