def translate_pat_Str(self, ctx, pat, scrutinee_trans):
scrutinee_trans_copy = astx.copy_node(scrutinee_trans)
pat_copy = astx.copy_node(pat)
condition = ast.Compare(
left=scrutinee_trans_copy,
ops=[ast.Eq()],
comparators=[pat_copy])
return (condition, _util.odict())
评论列表
文章目录