(expr)
Derives a decent data type based on the assumptions on the expression.
Derives a decent data type based on the assumptions on the expression.
Derives a decent data type based on the assumptions on the expression .
def get_default_datatype(expr):
    """Derives a decent data type based on the assumptions on the expression."""
    if expr.is_integer:
        return default_datatypes["int"]
    else:
        return default_datatypes["float"]
def get_default_datatype ( expr ) : if expr . is_integer : return default_datatypes [ "int" ] else : return default_datatypes [ "float" ]