Message131193
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. |
|
Date |
User |
Action |
Args |
2011-03-16 23:10:09 | belopolsky | set | recipients:
+ belopolsky, amaury.forgeotdarc, pitrou, alexandre.vassalotti, nyevik |
2011-03-16 23:10:08 | belopolsky | link | issue11564 messages |
2011-03-16 23:10:08 | belopolsky | create | |
|