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

Class I

Lib/test/test_descr.py:1556–1557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554
1555 # Test handling of int*seq and seq*int
1556 class I(int):
1557 pass
1558 self.assertEqual("a"*I(2), "aa")
1559 self.assertEqual(I(2)*"a", "aa")
1560 self.assertEqual(2*I(3), 6)

Callers 5

test_dynamicsMethod · 0.70
__add__Method · 0.70
__pow__Method · 0.70
__rpow__Method · 0.70

Calls

no outgoing calls

Tested by 5

test_dynamicsMethod · 0.56
__add__Method · 0.56
__pow__Method · 0.56
__rpow__Method · 0.56