Juha Jeronen
Juha Jeronen
Cat: AFAIK, Python basically resolves everything at runtime. Only reserved words such as `import` and `def` always mean what we expect them to; almost anything else can be overridden (either...
A cut at fixing this with minimal changes to the documentation is in https://github.com/Technologicat/macropy/commit/6abbdf87c935c7edc28aad6453a45d06dcfd3fd7
Ping? When you have the time, could you look at this and give an opinion? Still needs work? Ok as-is? Not acceptable?
Noticed also that the documentation section on [expansion order](https://macropy3.readthedocs.io/en/latest/reference.html#expansion-order) talks about trees in the context of block macros.
I meant "forest" in the CS sense of a graph where each connected component is a tree... but you're right, that's isomorphic to an unordered set, not an ordered list,...
2. Warn somewhere that AST objects that expect a sequence as arguments want a `List`, not a `Tuple`? (To avoid a headache debugging code that looks perfectly reasonable, but crashes.)...
3. MacroPy performs as many macro expansion passes as needed, until no macros remain. 4. `gen_sym` and other injected vars are pre-tailored to operate on the context of the module...
Simply that in my experience, in Python ASTs are more often read than written. Unless making a macro transformation, what is the point of creating new AST nodes manually? The...
Great primer, thanks! One more point I stumbled across today: 5. In macro-definition modules, do not use the name ``ast`` for your trees; it is unhygienically exported by ``macropy.core`` and...
@altoiddealer: Python programmer here. > For reasons beyond my comprehension, these buttons in particular are not inheriting properly (or something), because later on the 'module_name' value is the name of...