You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! We're using wrap_pyfunction a lot in pantsbuild/pants, and found we prefer #[pyfunction] over #[pyfn] to keep our #[pymodule] block clean. (I'm submitting a docs PR on other things we've found to help.)
I'm wondering if it makes sense to move the macro into the prelude, given how common this type seems to be, for fewer imports? Maybe the create_exception macro too?
I'm happy to implement if you think so!
The text was updated successfully, but these errors were encountered:
Hello! We're using
wrap_pyfunction
a lot in pantsbuild/pants, and found we prefer#[pyfunction]
over#[pyfn]
to keep our#[pymodule]
block clean. (I'm submitting a docs PR on other things we've found to help.)I'm wondering if it makes sense to move the macro into the prelude, given how common this type seems to be, for fewer imports? Maybe the
create_exception
macro too?I'm happy to implement if you think so!
The text was updated successfully, but these errors were encountered: