From a1beab4aeb8c9b39de536deee6cfdf4192485e8e Mon Sep 17 00:00:00 2001 From: Max Carrara Date: Tue, 23 Jul 2024 16:54:39 +0200 Subject: [PATCH] (TODO) pymodule: use multi-phase initialization in PyModule::new_bound Signed-off-by: Max R. Carrara --- src/types/module.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/module.rs b/src/types/module.rs index 6b90e5de197..2beb454c62a 100644 --- a/src/types/module.rs +++ b/src/types/module.rs @@ -45,6 +45,7 @@ impl PyModule { /// })?; /// # Ok(())} /// ``` + // TODO: Use multi-phase initialization pub fn new_bound<'py>(py: Python<'py>, name: &str) -> PyResult> { // Could use PyModule_NewObject, but it doesn't exist on PyPy. let name = CString::new(name)?;