def evaluate(self, state, local_scope): """ Create this list """ qlist = QList() for i in range(len(self.items)): value = self.items[i] qlist.append(value) return qlist
def __init__(self, name, namespace = "__root__"): QList.__init__(self) Type.__init__(self) self.__name = name # : string self.__namespace = namespace self.parent_entities = set() # : Entity<> self._attributes = {} self.__cls_type = None self.implementations = [] # default values self.__default_value = {} self.ids = {} self._index_def = [] self._index = {} self._instance_attributes = {}