let gil_guard = Python::acquire_gil(); let py = gil_guard.python(); let sys = py.import("sys").unwrap(); let version = sys.get("version").unwrap() .extract::<String>().unwrap(); println!("Hello Python \"{}\"", version); }
match std::num::cast::<c_long, $rust_type>(val) { src/objects/num.rs:61:1: 88:3 note: in expansion of int_fits_c_long! src/objects/num.rs:116:1: 116:22 note: expansion site src/objects/num.rs:81:23: 81:59 error: unresolved name `std::num::cast` src/objects/num.rs:81 match std::num::cast::<c_long, $rust_type>(val) {