parameters: (self, num, taskmaster)
docstring: Create 'num' jobs using the given taskmaster.
  
          If 'num' is 1 or less, then a serial job will be used,
          otherwise a parallel job with 'num' worker threads will
          be used.
  
          The 'num_jobs' attribute will be set to the actual number of jobs
          allocated.  If more than one job is requested but the Parallel
          class can't do it, it gets reset to 1.  Wrapping interfaces that
          care should check the value of 'num_jobs' after initialization.
docstring_summary: Create 'num' jobs using the given taskmaster.
docstring_tokens: Create num jobs using the given taskmaster .
function: def __init__(self, num, taskmaster):
          """
          Create 'num' jobs using the given taskmaster.
  
          If 'num' is 1 or less, then a serial job will be used,
          otherwise a parallel job with 'num' worker threads will
          be used.
  
          The 'num_jobs' attribute will be set to the actual number of jobs
          allocated.  If more than one job is requested but the Parallel
          class can't do it, it gets reset to 1.  Wrapping interfaces that
          care should check the value of 'num_jobs' after initialization.
          """
  
          self.job = None
          if num > 1:
              stack_size = explicit_stack_size
              if stack_size is None:
                  stack_size = default_stack_size
  
              try:
                  self.job = Parallel(taskmaster, num, stack_size)
                  self.num_jobs = num
              except NameError:
                  pass
          if self.job is None:
              self.job = Serial(taskmaster)
              self.num_jobs = 1
function_tokens: def __init__ ( self , num , taskmaster ) : self . job = None if num > 1 : stack_size = explicit_stack_size if stack_size is None : stack_size = default_stack_size try : self . job = Parallel ( taskmaster , num , stack_size ) self . num_jobs = num except NameError : pass if self . job is None : self . job = Serial ( taskmaster ) self . num_jobs = 1