MCPcopy Index your code
hub / github.com/pyodide/pyodide / test_array_extend

Function test_array_extend

src/tests/test_jsproxy.py:1549–1561  ·  view source on GitHub ↗
(selenium_module_scope, l1, l2)

Source from the content-addressed store, hash-verified

1547@example(l1=[], l2=[1])
1548@run_in_pyodide
1549def test_array_extend(selenium_module_scope, l1, l2):
1550 from pyodide.ffi import to_js
1551
1552 l1js1 = to_js(l1)
1553 l1js1.extend(l2)
1554
1555 l1js2 = to_js(l1)
1556 l1js2 += l2
1557
1558 l1.extend(l2)
1559
1560 assert l1 == l1js1.to_py()
1561 assert l1 == l1js2.to_py()
1562
1563
1564@run_in_pyodide

Callers

nothing calls this directly

Calls 3

to_jsFunction · 0.85
extendMethod · 0.80
to_pyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…