This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients casevh, kachayev, mark.dickinson, serhiy.storchaka
Date 2012-11-16.09:53:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353059638.64.0.802484666311.issue16483@psf.upfronthosting.co.za>
In-reply-to
Content
> There's also the minor practical inconvenience of having to remember to catch OverflowError *and* ValueError in try: .. except: constructs.

And MemoryError (for big decimals).

Might be the best solution would be raising an exception which subclasses both ValueError and OverflowError. Or make OverflowError to be subclass of ValueError.
History
Date User Action Args
2012-11-16 09:53:58serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, casevh, kachayev
2012-11-16 09:53:58serhiy.storchakasetmessageid: <1353059638.64.0.802484666311.issue16483@psf.upfronthosting.co.za>
2012-11-16 09:53:58serhiy.storchakalinkissue16483 messages
2012-11-16 09:53:58serhiy.storchakacreate