mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +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
|
| +-- IndexError
|
||||||
| +-- KeyError
|
| +-- KeyError
|
||||||
|
|
|
|
||||||
+-- NumberError(*)
|
+-- ArithmeticError(*)
|
||||||
| |
|
| |
|
||||||
| +-- OverflowError
|
| +-- OverflowError
|
||||||
| +-- ZeroDivisionError
|
| +-- ZeroDivisionError
|
||||||
|
@ -112,16 +112,16 @@ class KeyboardInterrupt(StandardError):
|
||||||
class AssertionError(StandardError):
|
class AssertionError(StandardError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class NumberError(StandardError):
|
class ArithmeticError(StandardError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class OverflowError(NumberError):
|
class OverflowError(ArithmeticError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class FloatingPointError(NumberError):
|
class FloatingPointError(ArithmeticError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class ZeroDivisionError(NumberError):
|
class ZeroDivisionError(ArithmeticError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class LookupError(StandardError):
|
class LookupError(StandardError):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue