(self)
return block
Replace list expression with tuple.
Replace list expression with tuple.
Replace list expression with tuple .
def apply(self):
        """
        Replace list expression with tuple.
        """
        block = self.block
        for inst in block.body:
            if isinstance(inst, ir.Assign) and inst.value in self.args:
                inst.value.op = 'build_tuple'
        return block
def apply ( self ) : block = self . block for inst in block . body : if isinstance ( inst , ir . Assign ) and inst . value in self . args : inst . value . op = 'build_tuple' return block