Skip to content

Commit

Permalink
(TODO) pymodule: use multi-phase initialization in PyModule::new_bound
Browse files Browse the repository at this point in the history
Signed-off-by: Max R. Carrara <[email protected]>
  • Loading branch information
Aequitosh committed Jul 23, 2024
1 parent bb977a1 commit a1beab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl PyModule {
/// })?;
/// # Ok(())}
/// ```
// TODO: Use multi-phase initialization
pub fn new_bound<'py>(py: Python<'py>, name: &str) -> PyResult<Bound<'py, PyModule>> {
// Could use PyModule_NewObject, but it doesn't exist on PyPy.
let name = CString::new(name)?;
Expand Down

0 comments on commit a1beab4

Please sign in to comment.