Skip to content

[enh] Re-exporting macros from another module #11

Description

@Technologicat

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 the macro library maintainer to structure the source tree logically, and then just re-export all macros from the library's __init__.py (just like it is possible to do for functions in pure Python).

This would allow the users of the library to just from somelibrary import macros, ..., without caring about in which particular submodule of the library each of the macros is defined.

There are probably some pitfalls I'm not seeing here; thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions