def INPLACE_(OP):
def INPLACE_OP(self, instr):
right = self.ast_stack.pop()
left = self.ast_stack.pop()
left.ctx = _ast.Store()
aug_assign = _ast.AugAssign(target=left, op=OP(), value=right, lineno=instr.lineno, col_offset=0)
self.ast_stack.append(aug_assign)
return INPLACE_OP
评论列表
文章目录