pub fn to_py_err(e: impl Display) -> PyErr
python
A helper function for converting any type that implements Debug to a Python ValueError.
Debug
ValueError