Scalar#
- class swordfish._swordfishcpp.Scalar#
Superclass for scalar types.
Represents single-value data types like
Int,String, andFloat. Inherits fromConstantand provides functionality specific to scalar values.- to_python()#
Converts the Scalar to a corresponding Python type.
- Returns:
Any: A Python object that represents the same value as the Scalar. The exact type depends on the Scalar’s data type (e.g., int, str, float).
- Return type:
Any