Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_dynamics
Method · 0.70
__add__
Method · 0.70
__pow__
Method · 0.70
__rpow__
Method · 0.70
test_binary_operator_override
Method · 0.70
Calls
no outgoing calls
Tested by
5
test_dynamics
Method · 0.56
__add__
Method · 0.56
__pow__
Method · 0.56
__rpow__
Method · 0.56
test_binary_operator_override
Method · 0.56