The ast
library is the modern method of parsing, manipulating and
executing Python code. The best introduction is the Green Tree Snakes
Python AST Docs; it also has a brief example of how you
might write something like Pytest.
The ast
library is the modern method of parsing, manipulating and
executing Python code. The best introduction is the Green Tree Snakes
Python AST Docs; it also has a brief example of how you
might write something like Pytest.