pyo3

Macro import_exception_bound

Source
macro_rules! import_exception_bound {
    ($module: expr, $name: ident) => { ... };
}
Expand description

Variant of import_exception that does not emit code needed to use the imported exception type as a GIL Ref.

This is useful only during migration as a way to avoid generating needless code.