Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pathwaycom/pathway
/ test_copy
Function
test_copy
python/pathway/tests/test_py_object_wrapper.py:317–323 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
315
316
317
def
test_copy():
318
s = [1, 2, 3]
319
p = pw.PyObjectWrapper(s)
320
q = copy.copy(p)
321
q.value.append(4)
322
assert s == [1, 2, 3, 4]
323
assert q.value == [1, 2, 3, 4]
324
325
326
def
test_deepcopy():
Callers
nothing calls this directly
Calls
1
copy
Method · 0.45
Tested by
no test coverage detected