(vm: &VirtualMachine, module: &Py<Self>)
| 128 | } |
| 129 | |
| 130 | pub fn __init_dict_from_def(vm: &VirtualMachine, module: &Py<Self>) { |
| 131 | let doc = module.def.unwrap().doc.map(|doc| doc.to_owned()); |
| 132 | module.init_dict(module.name.unwrap(), doc, vm); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | impl Py<PyModule> { |