Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Removes the duplicated values from the given list.
This method is expensive and should be used carefully.

@type list: List
@param list: The list to heave it's duplicates removed.
@rtype: List
@return: The list with the duplicates removed.

        def list_no_duplicates(list):
    """
    Removes the duplicated values from the given list.
    This method is expensive and should be used carefully.

    @type list: List
    @param list: The list to heave it's duplicates removed.
    @rtype: List
    @return: The list with the duplicates removed.
    """

    # creates the initial result list to hold the results
    result_list = []

    # iterates over all the values in the list
    for value in list:
        # in case the value already exists
        # in the result list (duplicate)
        if value in result_list:
            # continues the loop
            continue

        # adds the value to the result list
        result_list.append(value)

    # returns the result list
    return result_list
        


src/c/o/colony-1.0.9/src/colony/libs/file_util.py   colony(Download)
            # list, this will ensure that no duplicate operations
            # exist (this is a critical performance trick)
            path_tuples_list = remove_duplicates and list_util.list_no_duplicates(self.path_tuples_list) or self.path_tuples_list
 
            # iterates over all the path tuples in