About this page

ast — Abstract Syntax Trees — Python 3.7.17 documentation

https://docs.python.org/3.7/library/ast.html

“The ast module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like. An abstract syntax tree can be generated by passing...” (from the page’s text)

In short: Discover Python's Abstract Syntax Trees (AST) with this comprehensive guide. Learn to generate and manipulate AST trees for code analysis, and compile them back into Python code objects. (AI summary)

Topic
Software Development
Quality
Quality 87 scored 12 Aug 2025
Language
english
Text on page
12,598 characters
Page size
41 kB
Answered
OK (200), HTML
Last read
7 Jul 2025
In our index since
7 Jul 2025
Safe search
Not checked yet
Links to it
Linked from 1 site

More from docs.python.org

This site's best pages we know: ranked by how many other sites link to them.

All pages from this site ›

Tools for this page

Other sites that can tell you more. Plain links: we don't track where you go.

Archive

About the site

Discussions

For web makers

“Not rated yet” and similar notes are shown on purpose: we say what we haven't measured, so the page doesn't look emptier or better than it is.