Skip to content

Commit a0a71d8

Browse files
committed
Add newsfragment
1 parent 635b38c commit a0a71d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

newsfragments/3899.changed.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The `wrap_pyfunction!` macro is now deprecated. The `wrap_pyfunction_bound!` macro, which returns a `Bound<'_, PyCFunction>` should be used instead.
2+
In addition, the `#[pymodule]` macro was changed to support module functions that take a single module argument as a `&Bound<'_, PyModule>`.

0 commit comments

Comments
 (0)