Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ imul
Method
imul
Lib/test/test_list.py:99–99 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
97
n = int((sys.maxsize*2+2) // len(lst))
98
def
mul(a, b):
return
a * b
99
def
imul(a, b): a *= b
100
self.assertRaises((MemoryError, OverflowError), mul, lst, n)
101
self.assertRaises((MemoryError, OverflowError), imul, lst, n)
102
Callers
1
test_inplace
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected