script::python::rspython

Module utils

source

Functionsยง

  • use rustpythonโ€™s is_instance method to check if a PyObject is a instance of class. if PyResult is Err, then this function return false
  • py_obj_to_value ๐Ÿ”’
  • convert a single PyVector or a number(a constant)(wrapping in PyObjectRef) into a Array(or a constant array)