is_scalar

hhpy.main.is_scalar(obj: Any) → bool[source]

Checks if a given python object is scalar, i.e. one of int, float, str, bytes

Parameters:obj – Any python object
Returns:True if scaler, else False