We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to organize my code into submodules. How can I achive this?
Say, I want to make such a structure:
from my_module import foo from my_module.submodule import bar
I thought the following code makes it:
#[pyclass(name = "submodule", sub)] mod submodule { #[pyfunction] pub fn bar() { ... } } #[pyclass(name = "my_module", with(submodule)] mod my_module { #[pyfunction] pub fn foo() { ... } }
But instead I got bar() inside of my_module, without any submodules. What am I doing wrong?
bar()
The text was updated successfully, but these errors were encountered:
You can find the answer is here https://discord.com/channels/1043121930691149845/1235678739707199528 I faced the same problem 1 day ago
Sorry, something went wrong.
Thank you very much, I finally did it almost the same way :)
No branches or pull requests
Summary
I want to organize my code into submodules. How can I achive this?
Details
Say, I want to make such a structure:
I thought the following code makes it:
But instead I got
bar()
inside of my_module, without any submodules.What am I doing wrong?
The text was updated successfully, but these errors were encountered: