NumberError => ArithmeticError

This commit is contained in:
Barry Warsaw 1997-09-16 21:50:59 +00:00
parent 2d2c34445b
commit 25131faffe

View file

@ -35,7 +35,7 @@ Exception(*)
| +-- IndexError
| +-- KeyError
|
+-- NumberError(*)
+-- ArithmeticError(*)
| |
| +-- OverflowError
| +-- ZeroDivisionError
@ -112,16 +112,16 @@ class KeyboardInterrupt(StandardError):
class AssertionError(StandardError):
pass
class NumberError(StandardError):
class ArithmeticError(StandardError):
pass
class OverflowError(NumberError):
class OverflowError(ArithmeticError):
pass
class FloatingPointError(NumberError):
class FloatingPointError(ArithmeticError):
pass
class ZeroDivisionError(NumberError):
class ZeroDivisionError(ArithmeticError):
pass
class LookupError(StandardError):