Message175673
> 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. |
|
Date |
User |
Action |
Args |
2012-11-16 09:53:58 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson, casevh, kachayev |
2012-11-16 09:53:58 | serhiy.storchaka | set | messageid: <1353059638.64.0.802484666311.issue16483@psf.upfronthosting.co.za> |
2012-11-16 09:53:58 | serhiy.storchaka | link | issue16483 messages |
2012-11-16 09:53:58 | serhiy.storchaka | create | |
|