PyO3 / pyo3

Rust bindings for the Python interpreter
https://pyo3.rs
Other
11.44k stars 693 forks source link

Simplify `_PYO3_DEF` in `#[pymodule]` macro by no longer generating a `const fn` #4294

Closed alex closed 6 days ago

alex commented 6 days ago

I'm not positive this helps with the coverage issue, but it doesn't hurt, and someday when we remove function-modules, all this code can get a lot simpler.

Not sure if this needs a changelog, feels like more of an internal refactoring.