Python AST Module
Abstract Syntax Tree — literal_eval, parse, dump, walk. This category documents 7 Python ast module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: ast.literal_eval(), ast.parse(), ast.dump(), ast.walk(), ast.get_source_segment(), ast.fix_missing_locations(), ast.copy_location(). ast.literal_eval() safely evaluates a string containing a Python literal (list, dict, tuple, number, string, bool, None). ast.parse() parses Python source code into an AST (Abstract Syntax Tree). ast.dump() returns a formatted string representation of an AST node. ast.walk() recursively yields all descendant AST nodes (depth-first). ast.get_source_segment() returns the source code segment corresponding to an AST node. You can also search across every category from the search page, browse the complete A–Z index, or try any example in the Python playground. Python Reference documents 978+ functions, methods, and modules across 114 categories of the standard library, and every entry in this AST Module category follows the same format — syntax first, then what it does, the parameters it accepts, what it returns, and a working code example — so once you have read one page you can read them all.