def __init__(self, func, iterable, cpus=cpu_count(), cpu_reduction=0):
        """
        Multiprocessing helper function for performing looped operation using multiple processors.

        :param func: Function to call
        :param iterable: Iterable object to perform each function on
        :param cpus: Number of cpu cores, defaults to system's cpu count
        :param cpu_reduction: Number of cpu core's to not use
        """
        self._func = func
        self._iterable = iterable
        self.cpu_count = cpus - abs(cpu_reduction)
def __init__ ( self , func , iterable , cpus = cpu_count ( ) , cpu_reduction = 0 ) : self . _func = func self . _iterable = iterable self . cpu_count = cpus - abs ( cpu_reduction )
Multiprocessing helper function for performing looped operation using multiple processors.

        :param func: Function to call
        :param iterable: Iterable object to perform each function on
        :param cpus: Number of cpu cores, defaults to system's cpu count
        :param cpu_reduction: Number of cpu core's to not use