def _ctypes_ex_parameters(executable):
    """Returns a list of the parameters to form the wrapper executable to interact
    with ctypes.
    """
    result = []
    for p in executable.ordered_parameters:
        result.extend(p.ctypes_parameter())

    if type(executable).__name__ == "Function":
        result.extend(executable.ctypes_parameter()) #This method inherits from ValueElement.
        
    return result
def _ctypes_ex_parameters ( executable ) : result = [ ] for p in executable . ordered_parameters : result . extend ( p . ctypes_parameter ( ) ) if type ( executable ) . __name__ == "Function" : result . extend ( executable . ctypes_parameter ( ) ) return result
Returns a list of the parameters to form the wrapper executable to interact
    with ctypes.