Macros An implementation of Syntactic Macros in the Python Programming Language MacroPy provides a mechanism for user-defined functions (macros) to perform transformations on the abstract syntax tree (AST) of a Python program at import time. 02 September 2021