(args: IoOpenArgs, vm: &VirtualMachine)
| 4950 | |
| 4951 | #[pyfunction] |
| 4952 | fn open(args: IoOpenArgs, vm: &VirtualMachine) -> PyResult { |
| 4953 | io_open( |
| 4954 | args.file, |
| 4955 | args.mode.as_ref().into_option().map(|s| s.as_str()), |
| 4956 | args.opts, |
| 4957 | vm, |
| 4958 | ) |
| 4959 | } |
| 4960 | |
| 4961 | #[pyfunction] |
| 4962 | fn open_code(file: PyObjectRef, vm: &VirtualMachine) -> PyResult { |