(vm: &VirtualMachine)
| 752 | |
| 753 | #[pyattr] |
| 754 | fn warnoptions(vm: &VirtualMachine) -> Vec<PyObjectRef> { |
| 755 | vm.state |
| 756 | .config |
| 757 | .settings |
| 758 | .warnoptions |
| 759 | .iter() |
| 760 | .map(|s| vm.ctx.new_str(s.clone()).into()) |
| 761 | .collect() |
| 762 | } |
| 763 | |
| 764 | #[cfg(feature = "rustpython-compiler")] |
| 765 | #[pyfunction] |