@@ -798,18 +798,18 @@ def _construct_varargs(
798
798
if len (args ) == 1 :
799
799
# fn(*args)
800
800
if is_list_rprimitive (value .type ):
801
- value = self .call_c (list_tuple_op , [value ], line )
801
+ value = self .primitive_op (list_tuple_op , [value ], line )
802
802
elif not is_tuple_rprimitive (value .type ):
803
- value = self .call_c (sequence_tuple_op , [value ], line )
803
+ value = self .primitive_op (sequence_tuple_op , [value ], line )
804
804
return value , self ._create_dict ([], [], line )
805
805
elif len (args ) == 2 and args [1 ][1 ] == ARG_STAR2 :
806
806
# fn(*args, **kwargs)
807
807
if is_tuple_rprimitive (value .type ):
808
808
star_result = value
809
809
elif is_list_rprimitive (value .type ):
810
- star_result = self .call_c (list_tuple_op , [value ], line )
810
+ star_result = self .primitive_op (list_tuple_op , [value ], line )
811
811
else :
812
- star_result = self .call_c (sequence_tuple_op , [value ], line )
812
+ star_result = self .primitive_op (sequence_tuple_op , [value ], line )
813
813
continue
814
814
# elif ...: TODO extend this to optimize fn(*args, k=1, **kwargs) case
815
815
# TODO optimize this case using the length utils - currently in review
0 commit comments