parameters: (self, lang=None, task=None, ordered=True)
docstring: Return generator for all matching tasks by language.
          Args:
              lang    : OPTIONAL, what language, None for all
              task    : OPTIONAL, provide a wildcard for task names
              ordered : OPTIONAL, Get them in index order
  
          TODO: retain relative ordering based on the file they came from?
docstring_summary: Return generator for all matching tasks by language.
          Args:
              lang    : OPTIONAL, what language, None for all
              task    : OPTIONAL, provide a wildcard for task names
              ordered : OPTIONAL, Get them in index order
docstring_tokens: Return generator for all matching tasks by language . Args : lang : OPTIONAL what language None for all task : OPTIONAL provide a wildcard for task names ordered : OPTIONAL Get them in index order
function: def getTasks(self, lang=None, task=None, ordered=True):
          """
          Return generator for all matching tasks by language.
          Args:
              lang    : OPTIONAL, what language, None for all
              task    : OPTIONAL, provide a wildcard for task names
              ordered : OPTIONAL, Get them in index order
  
          TODO: retain relative ordering based on the file they came from?
          """
          baseName = task.split('*')[0] if task else None
          for l, tasks in self.tasks.iteritems():
              if lang is None or lang == l:
                  for name, t in sorted(tasks.iteritems(), key=lambda x: x[1].index):
                      if(baseName is None or name.startswith(baseName)):
                          yield t
function_tokens: def getTasks ( self , lang = None , task = None , ordered = True ) : baseName = task . split ( '*' ) [ 0 ] if task else None for l , tasks in self . tasks . iteritems ( ) : if lang is None or lang == l : for name , t in sorted ( tasks . iteritems ( ) , key = lambda x : x [ 1 ] . index ) : if ( baseName is None or name . startswith ( baseName ) ) : yield t