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