def translate_Unary_Name_constructor(self, ctx, e): if isinstance(e.op, ast.UAdd): argument = "Inf" else: argument = "-Inf" return astx.builtin_call("float", [ast.Str(s=argument)])