macropy icon indicating copy to clipboard operation
macropy copied to clipboard

Macros in Python: quasiquotes, case classes, LINQ and more!

Results 16 macropy issues
Sort by recently updated
recently updated
newest added

I get a crash during macro expansion when the source AST being transformed contains `complex` or `bytes` literals. The transformed AST contains the bare `complex` or `bytes` object (and hence...

Avoid crashing in error logger when the message of a macro expansion failure is not a string. This happens more often than one would think, when developing new macros :)

In the documentation, the section titled [Whither MacroPy](https://macropy3.readthedocs.io/en/latest/discussion.html#whither-macropy) discusses reasonable use cases for macros. I think this is very good, since macros are, as someone very compactly put it, the...

It would be convenient if a block macro could return, when appropriate for some particular use case, just a single AST node as the transformed body. Currently the return type...

My kwargs hack related to issue #13, mainly for discussion for now. In this version: - New magic is added to `**kw`, called `kwargs`. - `kwargs` gets the AST, as...

On some occasions it would be useful to abbreviate macro names. Particularly `ast_literal` is a rather long name, and if a short quasiquoted expression includes several of them, this can...

On some occasions, being able to pass named arguments to macros would be useful. Use case, related to the multilambda macro in [unpythonic](https://github.com/Technologicat/unpythonic) (rackety lambda with implicit begin, for Python):...

To improve both maintainability and ease of use of macro libraries, it would be useful if a macro-definition module could re-export macros defined in another macro-definition module. This would allow...