Gets the module name. May fail if the module does not have a `__name__` attribute.
(&'a self, py: Python)
| 73 | /// |
| 74 | /// May fail if the module does not have a `__name__` attribute. |
| 75 | pub fn name<'a>(&'a self, py: Python) -> PyResult<&'a str> { |
| 76 | unsafe { self.str_from_ptr(py, ffi::PyModule_GetName(self.0.as_ptr())) } |
| 77 | } |
| 78 | |
| 79 | /// Gets the module filename. |
| 80 | /// |
nothing calls this directly
no test coverage detected