parameters: (self, macro, macroList)
return_statement: return 1
docstring: Return True if the macro is in the macroList.
          The added value of this method is that it takes
          multi-events into account.  The macroList parameter
          will be coerced into a sequence if needed.
docstring_summary: Return True if the macro is in the macroList.
          The added value of this method is that it takes
          multi-events into account.  The macroList parameter
          will be coerced into a sequence if needed.
docstring_tokens: Return True if the macro is in the macroList . The added value of this method is that it takes multi - events into account . The macroList parameter will be coerced into a sequence if needed .
function: def macroIsA(self, macro, macroList):
          """
          Return True if the macro is in the macroList.
          The added value of this method is that it takes
          multi-events into account.  The macroList parameter
          will be coerced into a sequence if needed.
          """
          if callable(macroList):
              macroList = (macroList,)
          testList  = self.getEventTypes(macro)
          eventList = []
          for m in macroList:
              eventList.extend(self.getEventTypes(m))
          # Return True if every element in testList is in eventList
          for element in testList:
              if element not in eventList:
                  return 0
          return 1
function_tokens: def macroIsA ( self , macro , macroList ) : if callable ( macroList ) : macroList = ( macroList , ) testList = self . getEventTypes ( macro ) eventList = [ ] for m in macroList : eventList . extend ( self . getEventTypes ( m ) ) # Return True if every element in testList is in eventList for element in testList : if element not in eventList : return 0 return 1