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

Function pow

Lib/operator.py:132–134  ·  view source on GitHub ↗

Same as a ** b.

(a, b)

Source from the content-addressed store, hash-verified

130 return +a
131
132def pow(a, b):
133 "Same as a ** b."
134 return a ** b
135
136def rshift(a, b):
137 "Same as a >> b."

Callers 15

_hash_algorithmFunction · 0.70
__hash__Method · 0.70
_power_moduloMethod · 0.70
_pydecimal.pyFile · 0.70
testArithmeticMethod · 0.50
testMixedPowerMethod · 0.50
test_attributesMethod · 0.50
__pow__Method · 0.50
__rpow__Method · 0.50

Calls

no outgoing calls

Tested by 15

testArithmeticMethod · 0.40
testMixedPowerMethod · 0.40
test_attributesMethod · 0.40
__pow__Method · 0.40
__rpow__Method · 0.40
sqrtMethod · 0.40
test_powMethod · 0.40
powtestMethod · 0.40