Alexander Belopolsky <[email protected]> added the comment:
On Wed, Mar 16, 2011 at 6:59 PM, Antoine Pitrou <[email protected]> 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 <[email protected]> <http://bugs.python.org/issue11564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
