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