Home
last modified time | relevance | path

Searched refs:DecimalException (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython3/Lib/
D_pydecimal.py192 class DecimalException(ArithmeticError): class
215 class Clamped(DecimalException):
227 class InvalidOperation(DecimalException):
266 class DivisionByZero(DecimalException, ZeroDivisionError):
304 class Inexact(DecimalException):
330 class Rounded(DecimalException):
342 class Subnormal(DecimalException):
406 class FloatOperation(DecimalException, TypeError):
/external/python/cpython3/Lib/test/
Dtest_decimal.py295 except self.decimal.DecimalException as exception:
2754 DecimalException = decimal.DecimalException
2765 self.assertTrue(issubclass(DecimalException, ArithmeticError))
2767 self.assertTrue(issubclass(InvalidOperation, DecimalException))
2768 self.assertTrue(issubclass(FloatOperation, DecimalException))
2770 self.assertTrue(issubclass(DivisionByZero, DecimalException))
2774 self.assertTrue(issubclass(Overflow, DecimalException))
2778 self.assertTrue(issubclass(Underflow, DecimalException))
2780 self.assertTrue(issubclass(Subnormal, DecimalException))
2781 self.assertTrue(issubclass(Inexact, DecimalException))
[all …]
Dtest_functools.py1824 @g.register(decimal.DecimalException)
/external/python/cpython2/Lib/
Ddecimal.py160 class DecimalException(ArithmeticError): class
183 class Clamped(DecimalException):
195 class InvalidOperation(DecimalException):
234 class DivisionByZero(DecimalException, ZeroDivisionError):
272 class Inexact(DecimalException):
298 class Rounded(DecimalException):
310 class Subnormal(DecimalException):
/external/python/cpython3/Modules/_decimal/
D_decimal.c158 static PyObject *DecimalException = NULL; variable
5763 ASSIGN_PTR(DecimalException, PyErr_NewException( in PyInit__decimal()
5766 Py_INCREF(DecimalException); in PyInit__decimal()
5767 CHECK_INT(PyModule_AddObject(m, "DecimalException", DecimalException)); in PyInit__decimal()
5780 base = PyTuple_Pack(2, DecimalException, PyExc_TypeError); in PyInit__decimal()
5783 base = PyTuple_Pack(2, DecimalException, PyExc_ZeroDivisionError); in PyInit__decimal()
5795 base = PyTuple_Pack(1, DecimalException); in PyInit__decimal()
/external/python/cpython3/Doc/library/
Ddecimal.rst1559 .. class:: DecimalException
1656 DecimalException
1658 DivisionByZero(DecimalException, exceptions.ZeroDivisionError)
1665 FloatOperation(DecimalException, exceptions.TypeError)
/external/python/cpython2/Doc/library/
Ddecimal.rst1505 .. class:: DecimalException
1586 DecimalException
1588 DivisionByZero(DecimalException, exceptions.ZeroDivisionError)
/external/python/cpython2/Lib/test/
Dtest_decimal.py233 except DecimalException as exception: