mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 10:40:16 +00:00
* 通过引发py_call错误覆盖相关调用者的ok==false分支 * Revert "通过引发py_call错误覆盖相关调用者的ok==false分支" This reverts commit 36dc0b5d81a02a83dfdeca2d4d6d265f5f793b4b. * add test * rename test files * fix bugs * fix bugs
17 lines
232 B
Python
17 lines
232 B
Python
from dis import dis
|
|
|
|
def f(a):
|
|
for i in range(100000):
|
|
a.append(i)
|
|
a = 0.5
|
|
a = True
|
|
a = '123'
|
|
a = 123, 456
|
|
a = [1, 2, 3]
|
|
return a, a, a
|
|
|
|
def g(a):
|
|
return f([1,2,3] + a)
|
|
|
|
assert dis(f) is None
|