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)
pub fn py_obj_to_vec(
obj: &PyObjectRef,
vm: &VirtualMachine,
col_len: usize,
) -> Result<VectorRef, Error>
convert a single PyVector or a number(a constant)(wrapping in PyObjectRef) into a Array(or a constant array)