Skip to content
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

it would be nice if create_module could take a dict of submodules #54

Open
Jaymon opened this issue Nov 8, 2019 · 0 comments
Open

it would be nice if create_module could take a dict of submodules #54

Jaymon opened this issue Nov 8, 2019 · 0 comments

Comments

@Jaymon
Copy link
Owner

Jaymon commented Nov 8, 2019

I'd like to do something like:

m = testdata.create_module({
    "foo": ""
    "foo.bar": "",
    "che": ""
})

And it would create the module with whatever name, with submodules: .foo, .foo.bar, and .che and m would be a ModulePath instance so print(m) would print whatever name of the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant