PyO3 / pyo3

Rust bindings for the Python interpreter
https://pyo3.rs
Apache License 2.0
12.06k stars 744 forks source link

Automated module= field creation in declarative modules #4213

Closed Tpt closed 3 months ago

Tpt commented 4 months ago

Sets automatically the "module" field of all contained classes and submodules in a declarative module

Adds the "module" field to #[pymodule] attributes in order to set the name of the parent module. By default, the module is assumed to be a root module.

davidhewitt commented 4 months ago

👍 thanks, I'll try to review later. Also, I find myself wanting to use declarative modules all the time so I'm tempted to call them stable once we merge this! 😁