开发者_运维问答
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this questioncan anyone recommend a resource that shows how the AST module works step-by-step? particularly the NodeVisitor and NodeTransformer...
Not step-by-step, but good: http://eli.thegreenplace.net/2009/11/28/python-internals-working-with-python-asts/
The Python AST module reference is available here
The entire documentation is available here. Also I recommend watching Pycon Video As It gives a lot of insight to its working as well as the documentation.
精彩评论