(self)
return strRet
String representation of FunctionSlot
String representation of FunctionSlot
String representation of FunctionSlot
def __repr__(self):
      """ String representation of FunctionSlot """
      strRet = "Slot [%s] (Count: %d)\n" % (self.slotName, len(self.funcList))

      if len(self.funcList) <= 0:
         strRet += "\t\tNo function\n"
         return strRet

      for f, w in zip(self.funcList, self.funcWeights):
         strRet += "\t\tName: %s - Weight: %.2f\n" % (f.func_name, w)
         if f.func_doc:
            strRet += "\t\tDoc: " + f.func_doc + "\n"

      return strRet
def __repr__ ( self ) : strRet = "Slot [%s] (Count: %d)\n" % ( self . slotName , len ( self . funcList ) ) if len ( self . funcList ) <= 0 : strRet += "\t\tNo function\n" return strRet for f , w in zip ( self . funcList , self . funcWeights ) : strRet += "\t\tName: %s - Weight: %.2f\n" % ( f . func_name , w ) if f . func_doc : strRet += "\t\tDoc: " + f . func_doc + "\n" return strRet