MCPcopy Index your code
hub / github.com/python/cpython / raise_error

Method raise_error

Lib/test/test_decimal.py:3887–3893  ·  view source on GitHub ↗
(context, flag)

Source from the content-addressed store, hash-verified

3885 Subnormal = self.decimal.Subnormal
3886
3887 def raise_error(context, flag):
3888 if self.decimal == C:
3889 context.flags[flag] = True
3890 if context.traps[flag]:
3891 raise flag
3892 else:
3893 context._raise_error(flag)
3894
3895 context = Context(prec=9, Emin = -425000000, Emax = 425000000,
3896 rounding=ROUND_HALF_EVEN, traps=[], flags=[])

Callers

nothing calls this directly

Calls 1

_raise_errorMethod · 0.80

Tested by

no test coverage detected