-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support user introspection and modification of the currently defined macros #1467
Comments
Maybe related to #1324. It's easy to force a compile at runtime though, just use (hy.eval '(print hy.macros._hy-macros)) |
Ok thanks a simple |
I don't think |
Is there a better way to access all defined macros? |
No, I don't think so. We've never worked on introspection of the macro system beyond Hy's own internal needs. |
Better support for introspection of the macro system could replace |
Help me understand
hy.macros.-hy-macros
initialization.First run will print
hy.macros.-hy-macros
fine. Second and subsequent runs will print an empty dict.Deleting the
foo.pyc
will reset the-hy-macros
dict as expected.Is this intended behavior? If intended - how do I test code referencing
-hy-macros
?pkg/foo.hy
pkg/test_foo.hy
The text was updated successfully, but these errors were encountered: