openlostcat/operators/filter_operators.py
def __parse_single_value(dat):
        """Gets a single value from dat

        :param dat: value as string, bool or int (or None as null)
        :return: value in string
        """
        switcher = {
            bool: lambda b: "yes" if b else "no",
            int: lambda i: str(i),
            str: lambda s: s,
            type(None): lambda x: None,
            list: lambda x: error("Array is not allowed here: ", x),
            dict: lambda x: error("Key-value dictionary is not allowed here: ", x)
        }
        return switcher.get(type(dat),
                            lambda x: error("Unexpected element. Value type is not allowed here: ", x))(dat)
Gets a single value from dat

        :param dat: value as string, bool or int (or None as null)
        :return: value in string
        
Gets a single value from dat
Gets a single value from dat
def __parse_single_value(dat):
        switcher = {
            bool: lambda b: "yes" if b else "no",
            int: lambda i: str(i),
            str: lambda s: s,
            type(None): lambda x: None,
            list: lambda x: error("Array is not allowed here: ", x),
            dict: lambda x: error("Key-value dictionary is not allowed here: ", x)
        }
        return switcher.get(type(dat),
                            lambda x: error("Unexpected element. Value type is not allowed here: ", x))(dat)
def __parse_single_value ( dat ) : switcher = { bool : lambda b : "yes" if b else "no" , int : lambda i : str ( i ) , str : lambda s : s , type ( None ) : lambda x : None , list : lambda x : error ( "Array is not allowed here: " , x ) , dict : lambda x : error ( "Key-value dictionary is not allowed here: " , x ) } return switcher . get ( type ( dat ) , lambda x : error ( "Unexpected element. Value type is not allowed here: " , x ) ) ( dat )
Gets a single value from dat
Gets a single value from dat
"""Gets a single value from dat

        :param dat: value as string, bool or int (or None as null)
        :return: value in string
        """
value in string
value in string
dat
value as string, bool or int (or None as null)
value as string bool or int ( or None as null )