script::python::rspython::utils

Function 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)