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

Class X

Lib/test/test_capi/test_number.py:223–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 self.assertRaises(TypeError, inplacepower, 4, 11, object())
222
223 class X:
224 def __pow__(*args):
225 return args
226
227 x = X()
228 self.assertEqual(power(x, 11), (x, 11))

Callers 1

test_misc_powerMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_misc_powerMethod · 0.56