PEP 638 – Syntactic Macros | peps.python.org
This PEP adds support for syntactic macros to Python. A macro is a compile-time function that transforms a part of the program to allow functionality that cannot be expressed cleanly in normal library code.
Python Enhancement Proposals (PEPs)