Home
last modified time | relevance | path

Searched refs:DecimalException (Results 1 – 9 of 9) 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.py303 except self.decimal.DecimalException as exception:
2771 DecimalException = decimal.DecimalException
2782 self.assertTrue(issubclass(DecimalException, ArithmeticError))
2784 self.assertTrue(issubclass(InvalidOperation, DecimalException))
2785 self.assertTrue(issubclass(FloatOperation, DecimalException))
2787 self.assertTrue(issubclass(DivisionByZero, DecimalException))
2791 self.assertTrue(issubclass(Overflow, DecimalException))
2795 self.assertTrue(issubclass(Underflow, DecimalException))
2797 self.assertTrue(issubclass(Subnormal, DecimalException))
2798 self.assertTrue(issubclass(Inexact, DecimalException))
[all …]
Dtest_functools.py1863 @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
5774 ASSIGN_PTR(DecimalException, PyErr_NewException( in PyInit__decimal()
5777 Py_INCREF(DecimalException); in PyInit__decimal()
5778 CHECK_INT(PyModule_AddObject(m, "DecimalException", DecimalException)); in PyInit__decimal()
5791 base = PyTuple_Pack(2, DecimalException, PyExc_TypeError); in PyInit__decimal()
5794 base = PyTuple_Pack(2, DecimalException, PyExc_ZeroDivisionError); in PyInit__decimal()
5806 base = PyTuple_Pack(1, DecimalException); in PyInit__decimal()
/external/python/cpython3/Doc/library/
Ddecimal.rst1560 .. class:: DecimalException
1657 DecimalException
1659 DivisionByZero(DecimalException, exceptions.ZeroDivisionError)
1666 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:
/external/python/cpython3/Tools/c-analyzer/cpython/
Dignored.tsv2386 Modules/_decimal/_decimal.c - DecimalException -