code: def addMethod(self, m):
          
          if m.nargs == -1:
              m.nargs = len([a for a in marshal.genCompleteTypes(m.sigIn)])
              m.nret = len([a for a in marshal.genCompleteTypes(m.sigOut)])
          self.methods[m.name] = m
          self._xml = None
docs: Adds a L{Method} to the interface