Serhiy Storchaka added the comment:

> 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 

nosy: +serhiy.storchaka

Python tracker <>
Python-bugs-list mailing list

Reply via email to