fn scalar_val_try_into_py_obj(
val: ScalarValue,
vm: &VirtualMachine,
) -> PyResult<PyObjectRef>
Expand description
turn a ScalarValue into a Python Object, currently support
ScalarValue -> Python Type
- Float64 -> PyFloat
- Int64 -> PyInt
- UInt64 -> PyInt
- List -> PyList(of inner ScalarValue)