(file: PyObjectRef, vm: &VirtualMachine)
| 4960 | |
| 4961 | #[pyfunction] |
| 4962 | fn open_code(file: PyObjectRef, vm: &VirtualMachine) -> PyResult { |
| 4963 | // TODO: lifecycle hooks or something? |
| 4964 | io_open(file, Some("rb"), OpenArgs::default(), vm) |
| 4965 | } |
| 4966 | |
| 4967 | #[derive(FromArgs)] |
| 4968 | pub struct OpenArgs { |