mirror of
https://github.com/python/cpython.git
synced 2025-07-18 16:55:20 +00:00
NumberError => ArithmeticError
This commit is contained in:
parent
2d2c34445b
commit
25131faffe
1 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue