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

Method __pow__

Modules/_decimal/tests/deccheck.py:528–537  ·  view source on GitHub ↗

Always calls the resolve function. C.Decimal does not have correct rounding for the power function.

(self, t)

Source from the content-addressed store, hash-verified

526 return self.resolve_underflow(t)
527
528 def __pow__(self, t):
529 """Always calls the resolve function. C.Decimal does not have correct
530 rounding for the power function."""
531 if context.c.flags[C.Rounded] and \
532 context.c.flags[C.Inexact] and \
533 context.p.flags[P.Rounded] and \
534 context.p.flags[P.Inexact]:
535 return self.bin_resolve_ulp(t)
536 else:
537 return False
538 power = __rpow__ = __pow__
539
540 ############################## Technicalities #############################

Callers

nothing calls this directly

Calls 1

bin_resolve_ulpMethod · 0.95

Tested by

no test coverage detected