MCPcopy Index your code
hub / github.com/RustPython/RustPython / raise_error

Method raise_error

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

Source from the content-addressed store, hash-verified

3890 Subnormal = self.decimal.Subnormal
3891
3892 def raise_error(context, flag):
3893 if self.decimal == C:
3894 context.flags[flag] = True
3895 if context.traps[flag]:
3896 raise flag
3897 else:
3898 context._raise_error(flag)
3899
3900 context = Context(prec=9, Emin = -425000000, Emax = 425000000,
3901 rounding=ROUND_HALF_EVEN, traps=[], flags=[])

Callers

nothing calls this directly

Calls 1

_raise_errorMethod · 0.80

Tested by

no test coverage detected