(vm: &VirtualMachine)
| 626 | |
| 627 | #[pyattr(once)] |
| 628 | fn stdlib_module_names(vm: &VirtualMachine) -> PyObjectRef { |
| 629 | let names = STDLIB_MODULE_NAMES |
| 630 | .iter() |
| 631 | .map(|&n| vm.ctx.new_str(n).into()); |
| 632 | PyFrozenSet::from_iter(vm, names) |
| 633 | .expect("Creating stdlib_module_names frozen set must succeed") |
| 634 | .to_pyobject(vm) |
| 635 | } |
| 636 | |
| 637 | #[pyattr] |
| 638 | fn byteorder(vm: &VirtualMachine) -> PyStrRef { |
nothing calls this directly
no test coverage detected