Function script::python::rspython::utils::py_obj_to_vec

source ยท
pub fn py_obj_to_vec(
    obj: &PyObjectRef,
    vm: &VirtualMachine,
    col_len: usize,
) -> Result<VectorRef, Error>
Expand description

convert a single PyVector or a number(a constant)(wrapping in PyObjectRef) into a Array(or a constant array)