Author belopolsky
Recipients alexandre.vassalotti, amaury.forgeotdarc, belopolsky, nyevik, pitrou
Date 2011-03-16.23:10:08
SpamBayes Score 6.74794e-13
Marked as misclassified No
Message-id <AANLkTimNgRJ2O6WOL03-QwB-TGBhTAG2TRr8T0jx150v@mail.gmail.com>
In-reply-to <1300316372.3749.4.camel@localhost.localdomain>
Content
On Wed, Mar 16, 2011 at 6:59 PM, Antoine Pitrou <report@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.
History
Date User Action Args
2011-03-16 23:10:09belopolskysetrecipients: + belopolsky, amaury.forgeotdarc, pitrou, alexandre.vassalotti, nyevik
2011-03-16 23:10:08belopolskylinkissue11564 messages
2011-03-16 23:10:08belopolskycreate