How can I convert Python object - a list, into an ast.List object, so I can appent it to the main AST tree as a node
huge_list [ 1, "ABC", 4.5 ]
object = ast.Assign([ast.Name(huge_list_name, ast.Store())], (ast.List(huge_list, ast.Load())))
object.lineno = None
result = ast.unparse(object)
print(result)
tree.body.append(object)
but it fails while parsing each field from the sample list.