def generate_unaryop(self, node, ext_info):
if isinstance(node.op, ast.Not):
return '! ' + self.dispatch(node.operand, ext_info)
else:
SyntaxNotSupportError("%s is not support yet" % node.op.__class__.__name__)
评论列表
文章目录