(d)
return s[:-2]
Converts a dictionary to the argument syntax for this SSE
Converts a dictionary to the argument syntax for this SSE
Converts a dictionary to the argument syntax for this SSE
def dict_to_sse_arg(d):
    """
    Converts a dictionary to the argument syntax for this SSE
    """

    # Dictionary used to convert argument values to the correct type
    types = {bool:"bool", int:"int", float:"float", str:"str"}

    # Output string
    s = ""

    # Format into the required syntax
    for k, v in d.items():
        if v is None:
            s = s + str(k) + "=None, "
        else:
            s = s + str(k) + "=" + str(v) + "|" + types[type(v)] + ", "
    
    return s[:-2]
def dict_to_sse_arg ( d ) : # Dictionary used to convert argument values to the correct type types = { bool : "bool" , int : "int" , float : "float" , str : "str" } # Output string s = "" # Format into the required syntax for k , v in d . items ( ) : if v is None : s = s + str ( k ) + "=None, " else : s = s + str ( k ) + "=" + str ( v ) + "|" + types [ type ( v ) ] + ", " return s [ : - 2 ]