Skip to content

Commit 647d10d

Browse files
authored
Update list_ops.py add primitive list.copy()
added primitive list.copy()
1 parent a067d84 commit 647d10d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mypyc/primitives/list_ops.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@
262262
error_kind=ERR_MAGIC,
263263
)
264264

265+
# list.copy()
266+
method_op(
267+
name="copy",
268+
arg_types=[list_rprimitive],
269+
return_type=list_rprimitive,
270+
c_function_name="CPyList_Copy",
271+
error_kind=ERR_MAGIC,
272+
)
273+
265274
# list * int
266275
binary_op(
267276
name="*",

0 commit comments

Comments
 (0)