MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / import

Method import

src/python.rs:355–357  ·  view source on GitHub ↗

Import the Python module with the specified name.

(self, name: &str)

Source from the content-addressed store, hash-verified

353
354 /// Import the Python module with the specified name.
355 pub fn import(self, name: &str) -> PyResult<PyModule> {
356 PyModule::import(self, name)
357 }
358}
359
360impl<'p> std::fmt::Debug for PythonObjectDowncastError<'p> {

Callers 3

test_array_bufferFunction · 0.45
test_thread_exit_pyFunction · 0.45
helloFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_array_bufferFunction · 0.36
test_thread_exit_pyFunction · 0.36